Class TextFormat
Encapsulates text layout information (such as alignment and orientation), display manipulations (such as ellipsis insertion) and other formatting options.
public class TextFormat : ImmutableWithRecord<TextFormat.Record>, IBaseObjectWithId, IImmutableObject, IDisposableObject, IDisposable, IBaseObject, INotifyPropertyChanged
- Inheritance
-
TextFormat
- Implements
Fields
- DefaultHorizontalAlignment
Gets default horizontal alignment of the text;
- DefaultTrimming
Gets default trimming style of the text;
- DefaultVerticalAlignment
Gets default vertical alignment of the text;
- DefaultWrapping
Gets default wrapping style of the text;
Properties
- DefaultRecord
Gets default text format.
- Distance
Gets or sets distance between lines of the text. Default is 0.
- HorizontalAlignment
Gets or sets horizontal alignment of the text. Default is Left.
- MaxHeight
Gets or sets maximal width of the text.
- MaxWidth
Gets or sets maximal height of the text.
- Padding
Gets or sets padding of the text.
- PaddingBottom
Gets or sets the bottom padding of the text.
- PaddingLeft
Gets or sets the left padding of the text.
- PaddingRight
Gets or sets the right padding of the text.
- PaddingTop
Gets or sets the top padding of the text.
- SuggestedHeight
Gets or sets suggested width of the text.
- SuggestedWidth
Gets or sets suggested height of the text.
- Trimming
Gets or sets the TextTrimming enumeration value for this object. Default is None.
- VerticalAlignment
Gets or sets the vertical alignment of the text.
- Wrapping
Gets or sets the TextWrapping enumeration value for this object. Default is Character.
Methods
- Alignment(TextHorizontalAlignment)
Sets horizontal alignment specified in the
horizontalAlignment
parameter.
- Alignment(TextVerticalAlignment)
Sets vertical alignment specified in the
verticalAlignment
parameter.
- Clone()
Creates clone of this object.
- Default()
Creates a copy of default object.
- MaximalWidth(double)
Sets maximal width.
- SuggestWidth(double)
Sets suggested width.
- WithAlignment(TextHorizontalAlignment)
Creates new text format which is a clone of this object but with new horizontal alignment specified in the
horizontalAlignment
.
- WithMaxWidth(double)
Creates new text format which is a clone of this object but with new maximal width specified in the
maxWidth
.
- WithSuggestedWidth(double)
Creates new text format which is a clone of this object but with new suggested width specified in the
suggestedWidth
.