# TextAttribute

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/automation/provider/enum-textattribute/

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

```rust
enum TextAttribute
```

Formatting attributes available through the portable text pattern. Font size
and paragraph measurements are in typographic points (72 points per inch).
Unknown native attributes retain their identifier and return `NotSupported`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L34)

## Members

- [`FontName`](#variant-fontname)
- [`FontSize`](#variant-fontsize)
- [`FontWeight`](#variant-fontweight)
- [`IsItalic`](#variant-isitalic)
- [`IsReadOnly`](#variant-isreadonly)
- [`IsHidden`](#variant-ishidden)
- [`ForegroundColor`](#variant-foregroundcolor)
- [`BackgroundColor`](#variant-backgroundcolor)
- [`UnderlineColor`](#variant-underlinecolor)
- [`UnderlineStyle`](#variant-underlinestyle)
- [`OverlineColor`](#variant-overlinecolor)
- [`OverlineStyle`](#variant-overlinestyle)
- [`StrikethroughColor`](#variant-strikethroughcolor)
- [`StrikethroughStyle`](#variant-strikethroughstyle)
- [`IsSubscript`](#variant-issubscript)
- [`IsSuperscript`](#variant-issuperscript)
- [`HorizontalTextAlignment`](#variant-horizontaltextalignment)
- [`IndentationFirstLine`](#variant-indentationfirstline)
- [`IndentationLeading`](#variant-indentationleading)
- [`IndentationTrailing`](#variant-indentationtrailing)
- [`MarginTop`](#variant-margintop)
- [`MarginBottom`](#variant-marginbottom)
- [`MarginLeading`](#variant-marginleading)
- [`MarginTrailing`](#variant-margintrailing)
- [`TextFlowDirections`](#variant-textflowdirections)
- [`Unknown`](#variant-unknown)

<a id="variant-fontname"></a>

### FontName

```rust
FontName
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L35)

<a id="variant-fontsize"></a>

### FontSize

```rust
FontSize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L36)

<a id="variant-fontweight"></a>

### FontWeight

```rust
FontWeight
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L37)

<a id="variant-isitalic"></a>

### IsItalic

```rust
IsItalic
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L38)

<a id="variant-isreadonly"></a>

### IsReadOnly

```rust
IsReadOnly
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L39)

<a id="variant-ishidden"></a>

### IsHidden

```rust
IsHidden
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L40)

<a id="variant-foregroundcolor"></a>

### ForegroundColor

```rust
ForegroundColor
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L41)

<a id="variant-backgroundcolor"></a>

### BackgroundColor

```rust
BackgroundColor
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L42)

<a id="variant-underlinecolor"></a>

### UnderlineColor

```rust
UnderlineColor
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L43)

<a id="variant-underlinestyle"></a>

### UnderlineStyle

```rust
UnderlineStyle
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L44)

<a id="variant-overlinecolor"></a>

### OverlineColor

```rust
OverlineColor
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L45)

<a id="variant-overlinestyle"></a>

### OverlineStyle

```rust
OverlineStyle
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L46)

<a id="variant-strikethroughcolor"></a>

### StrikethroughColor

```rust
StrikethroughColor
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L47)

<a id="variant-strikethroughstyle"></a>

### StrikethroughStyle

```rust
StrikethroughStyle
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L48)

<a id="variant-issubscript"></a>

### IsSubscript

```rust
IsSubscript
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L49)

<a id="variant-issuperscript"></a>

### IsSuperscript

```rust
IsSuperscript
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L50)

<a id="variant-horizontaltextalignment"></a>

### HorizontalTextAlignment

```rust
HorizontalTextAlignment
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L51)

<a id="variant-indentationfirstline"></a>

### IndentationFirstLine

```rust
IndentationFirstLine
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L52)

<a id="variant-indentationleading"></a>

### IndentationLeading

```rust
IndentationLeading
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L53)

<a id="variant-indentationtrailing"></a>

### IndentationTrailing

```rust
IndentationTrailing
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L54)

<a id="variant-margintop"></a>

### MarginTop

```rust
MarginTop
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L55)

<a id="variant-marginbottom"></a>

### MarginBottom

```rust
MarginBottom
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L56)

<a id="variant-marginleading"></a>

### MarginLeading

```rust
MarginLeading
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L57)

<a id="variant-margintrailing"></a>

### MarginTrailing

```rust
MarginTrailing
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L58)

<a id="variant-textflowdirections"></a>

### TextFlowDirections

```rust
TextFlowDirections
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L59)

<a id="variant-unknown"></a>

### Unknown

```rust
Unknown(i32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/provider/i_text_range_provider.rs#L60)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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