Represents style attributes of text.
- Inheritance:
- object object
- Implements:
- ICloneable
Constructors
TextStyle()
Initializes a new instance of the text style with default values.
TextStyle(string?, double?, Color?)
Initializes a new instance of the text style with the specified font family name, font size, and font color.
Parameter | Type | Description |
---|---|---|
fontFamilyName | string | The font family name or |
fontSize | double? | The font size, or |
textColor | Color? | The text color, or |
Properties
Bold
Indicates if bold is active.
Property Value
FontFamilyName
The font family name.
Property Value
FontSize
The font size.
Property Value
Italic
Indicates if italic is active.
Property Value
TextColor
The text color.
Property Value
- Color
Methods
Clone()
Creates a new object that is a copy of the current instance.
Returns
- Text
Style : A new object that is a copy of this instance.
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameter | Type | Description |
---|---|---|
obj | object | The object to compare with the current object. |
Returns
- bool:
true
if the specified object is equal to the current object; otherwise,false
.
GetHashCode()
Serves as the default hash function.
Returns
- int:
A hash code for the current object.
Inherited Members
-
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object, object) -
object.
Reference Equals(object, object)