# ClrPropertyViewModel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-clrpropertyviewmodel/

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

```rust
struct ClrPropertyViewModel
```

The view model of a plain property of an object: its value, read through the metadata of the
type that declares it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L20)

## Members

- [`new`](#function-new)
- [`to_property_view_model`](#function-to_property_view_model)
- [`property`](#function-property)
- [`declaring_markup_type`](#function-declaring_markup_type)
- [`key`](#function-key)
- [`name`](#function-name)
- [`group`](#function-group)
- [`assigned_type`](#function-assigned_type)
- [`property_type`](#function-property_type)
- [`is_readonly`](#function-is_readonly)
- [`value`](#function-value)
- [`set_value`](#function-set_value)
- [`priority`](#function-priority)
- [`is_attached`](#function-is_attached)
- [`declaring_type`](#function-declaring_type)
- [`update`](#function-update)

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

### new

```rust
fn new(o: BoxedValue, property: &'static MarkupProperty, declaring_type: &'static MarkupType) -> Rc<Self>
```

The view model of the property `property` of `o`, which the type `declaring_type`
declares (the `PropertyInfo` of the managed original, with its `DeclaringType`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L55)

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

### to_property_view_model

```rust
fn to_property_view_model(self: &Rc<Self>) -> PropertyViewModelRef
```

The handle of the view model typed with the abstract class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L81)

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

### property

```rust
fn property(self: &Self) -> &'static MarkupProperty
```

The property (`PropertyInfo Property`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L86)

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

### declaring_markup_type

```rust
fn declaring_markup_type(self: &Self) -> &'static MarkupType
```

The metadata of the type that declares the property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L91)

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

### key

```rust
fn key(self: &Self) -> PropertyViewModelKey
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L95)

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

### name

```rust
fn name(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L99)

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

### group

```rust
fn group(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L103)

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

### assigned_type

```rust
fn assigned_type(self: &Self) -> ValueType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L111)

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

### property_type

```rust
fn property_type(self: &Self) -> ValueType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L115)

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

### is_readonly

```rust
fn is_readonly(self: &Self) -> bool
```

`!Property.CanWrite`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L120)

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

### value

```rust
fn value(self: &Self) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L124)

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

### set_value

```rust
fn set_value(self: &Self, value: Option<BoxedValue>)
```

Sets the property of the object to `value` and reads it back. A value the setter does
not take is ignored (the managed original swallows the exception).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L130)

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

### priority

```rust
fn priority(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L139)

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

### is_attached

```rust
fn is_attached(self: &Self) -> Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L143)

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

### declaring_type

```rust
fn declaring_type(self: &Self) -> Option<ValueType>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L147)

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

### update

```rust
fn update(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/clr_property_view_model.rs#L151)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `PartialEq`
- `Deref`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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