Struct TextLayoutOptions
- Namespace
- Forma
- Assembly
- Forma.dll
public readonly struct TextLayoutOptions : IEquatable<TextLayoutOptions>
- Implements
-
- Inherited Members
-
Constructors
TextLayoutOptions()
public TextLayoutOptions()
TextLayoutOptions(float, TextWrapping, HorizontalAlignment, TextDirection, float, int, TextTrimming, int, string, string, IEnumerable<float>, IEnumerable<UIFontOpenTypeFeature>, string, float, TextJustificationFlags)
public TextLayoutOptions(float maxWidth = Infinity, TextWrapping wrapping = TextWrapping.NoWrap, HorizontalAlignment alignment = HorizontalAlignment.Left, TextDirection direction = TextDirection.Auto, float lineSpacing = 1, int tabSize = 4, TextTrimming trimming = TextTrimming.None, int maxVisibleCharacters = 2147483647, string locale = null, string paragraphSeparator = null, IEnumerable<float> tabStops = null, IEnumerable<UIFontOpenTypeFeature> openTypeFeatures = null, string ellipsis = null, float paragraphSpacing = 0, TextJustificationFlags justificationFlags = TextJustificationFlags.None)
Parameters
maxWidth float
wrapping TextWrapping
alignment HorizontalAlignment
direction TextDirection
lineSpacing float
tabSize int
trimming TextTrimming
maxVisibleCharacters int
locale string
paragraphSeparator string
tabStops IEnumerable<float>
openTypeFeatures IEnumerable<UIFontOpenTypeFeature>
ellipsis string
paragraphSpacing float
justificationFlags TextJustificationFlags
Properties
Alignment
public HorizontalAlignment Alignment { get; }
Property Value
- HorizontalAlignment
Default
public static TextLayoutOptions Default { get; }
Property Value
- TextLayoutOptions
Direction
public TextDirection Direction { get; }
Property Value
- TextDirection
Ellipsis
public string Ellipsis { get; }
Property Value
- string
JustificationFlags
public TextJustificationFlags JustificationFlags { get; }
Property Value
- TextJustificationFlags
LineSpacing
public float LineSpacing { get; }
Property Value
- float
Locale
public string Locale { get; }
Property Value
- string
MaxVisibleCharacters
public int MaxVisibleCharacters { get; }
Property Value
- int
MaxWidth
public float MaxWidth { get; }
Property Value
- float
OpenTypeFeatures
public IReadOnlyList<UIFontOpenTypeFeature> OpenTypeFeatures { get; }
Property Value
- IReadOnlyList<UIFontOpenTypeFeature>
ParagraphSeparator
public string ParagraphSeparator { get; }
Property Value
- string
ParagraphSpacing
public float ParagraphSpacing { get; }
Property Value
- float
TabSize
public int TabSize { get; }
Property Value
- int
TabStops
public IReadOnlyList<float> TabStops { get; }
Property Value
- IReadOnlyList<float>
Trimming
public TextTrimming Trimming { get; }
Property Value
- TextTrimming
Wrapping
public TextWrapping Wrapping { get; }
Property Value
- TextWrapping
Methods
Equals(TextLayoutOptions)
public bool Equals(TextLayoutOptions other)
Parameters
other TextLayoutOptions
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
obj object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
Operators
operator ==(TextLayoutOptions, TextLayoutOptions)
public static bool operator ==(TextLayoutOptions left, TextLayoutOptions right)
Parameters
left TextLayoutOptions
right TextLayoutOptions
Returns
- bool
operator !=(TextLayoutOptions, TextLayoutOptions)
public static bool operator !=(TextLayoutOptions left, TextLayoutOptions right)
Parameters
left TextLayoutOptions
right TextLayoutOptions
Returns
- bool