TextFormatDefinition
Represents formatting of a text portion.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.UI
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class TextFormatDefinition
Inheritance: objectTextFormatDefinition
Constructors
Initializes a new instance of the TextFormatDefinition class.
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border, FontWeight fontWeight, FontStyle fontStyle)
Initializes a new instance of the TextFormatDefinition class.
public TextFormatDefinition(Brush foreground, Brush background, UnderlineInfo underline, Pen border)
Initializes a new instance of the TextFormatDefinition class.
public TextFormatDefinition(Brush foreground, Brush background)
Initializes a new instance of the TextFormatDefinition class.
public TextFormatDefinition(Brush foreground, FontWeight fontWeight, FontStyle fontStyle)
Initializes a new instance of the TextFormatDefinition class.
public TextFormatDefinition(Brush foreground)
Initializes a new instance of the TextFormatDefinition class.
Initializes a new instance of the TextFormatDefinition class.
Properties
Background
Brush
Gets the background of the text format definition.
public Brush Background { get; }
FontStyle
FontStyle
Gets the font style of the text format definition.
public FontStyle FontStyle { get; }
FontWeight
FontWeight
Gets the font weight of the text format definition.
public FontWeight FontWeight { get; }
Foreground
Brush
Gets the foreground of the text format definition.
public Brush Foreground { get; }
Gets the underline of the text format definition.
public UnderlineInfo Underline { get; }
Methods
Determines whether this instance is equal to other TextFormatDefinition instance.
Gets the hash code of this instance.
Operators
Implements the != operator.
public static bool operator !=(TextFormatDefinition left, TextFormatDefinition right)
The left.
rightTextFormatDefinitionThe right.
Returns:The result of the operator.
Implements the == operator.
public static bool operator ==(TextFormatDefinition left, TextFormatDefinition right)
The left.
rightTextFormatDefinitionThe right.
Returns:The result of the operator.