# PastingFromClipboardEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-pastingfromclipboardeventargs/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct PastingFromClipboardEventArgs
```

Provides data specific to a `TextBox::pasting_from_clipboard` event.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pasting_from_clipboard_event_args.rs#L8)

## Members

- [`new`](#function-new)
- [`clipboard`](#function-clipboard)

<a id="function-new"></a>

### new

```rust
fn new<T: ?Sized>(routed_event: &RoutedEvent<T>, clipboard: Option<Rc<dyn IClipboard>>) -> Self
```

Initializes a new instance of the `PastingFromClipboardEventArgs`
class.

`routed_event` is the routed event associated with these event args,
`clipboard` the clipboard being pasted from.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pasting_from_clipboard_event_args.rs#L21)

<a id="function-clipboard"></a>

### clipboard

```rust
fn clipboard(self: &Self) -> Option<Rc<dyn IClipboard>>
```

The clipboard being pasted from. This is either the system clipboard
or, when pasting via middle-click on platforms supporting it, the
primary selection.

`None` when no clipboard is available; a handler can still handle the
event to provide custom paste behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/pasting_from_clipboard_event_args.rs#L31)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`
- `Deref`
- [`IRoutedEventArgs`](/docs/0.5.0/api/ferroui-base/interactivity/trait-iroutedeventargs/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
