Class TextFormatDefinition
Represents formatting of a text portion.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public class TextFormatDefinition
Constructors
TextFormatDefinition(SolidBrush)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(SolidBrush foreground)
Parameters
System.Drawing.SolidBrush
foreground
|
TextFormatDefinition(SolidBrush, SolidBrush)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(SolidBrush foreground, SolidBrush background)
Parameters
System.Drawing.SolidBrush
foreground
|
System.Drawing.SolidBrush
background
|
TextFormatDefinition(SolidBrush, SolidBrush, UnderlineInfo, Pen)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(SolidBrush foreground, SolidBrush background, UnderlineInfo underline, Pen border)
Parameters
System.Drawing.SolidBrush
foreground
|
System.Drawing.SolidBrush
background
|
UnderlineInfo
underline
|
Pen
border
|
TextFormatDefinition(Pen)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(Pen border)
Parameters
Pen
border
|
TextFormatDefinition(UnderlineInfo)
Initializes a new instance of the TextFormatDefinition class.
Declaration
public TextFormatDefinition(UnderlineInfo underline)
Parameters
UnderlineInfo
underline
|
Properties
Background
Gets the background of the text format definition.
Declaration
public SolidBrush Background { get; }
Property Value
System.Drawing.SolidBrush
|
Border
Gets the border of the text format definition.
Declaration
public Pen Border { get; }
Property Value
Pen
|
Foreground
Gets the foreground of the text format definition.
Declaration
public SolidBrush Foreground { get; }
Property Value
System.Drawing.SolidBrush
|
Underline
Gets the underline of the text format definition.
Declaration
public UnderlineInfo Underline { get; }
Property Value
UnderlineInfo
|
Methods
Equals(Object)
Determines whether two object instances are equal.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
Equals(TextFormatDefinition)
Determines whether this instance is equal to other TextFormatDefinition instance.
Declaration
public bool Equals(TextFormatDefinition other)
Parameters
TextFormatDefinition
other
|
Returns
System.Boolean
|
GetHashCode()
Gets the hash code of this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
Operators
Equality(TextFormatDefinition, TextFormatDefinition)
Implements the == operator.
Declaration
public static bool operator ==(TextFormatDefinition left, TextFormatDefinition right)
Parameters
TextFormatDefinition
left
The left. |
TextFormatDefinition
right
The right. |
Returns
System.Boolean
The result of the operator. |
Inequality(TextFormatDefinition, TextFormatDefinition)
Implements the != operator.
Declaration
public static bool operator !=(TextFormatDefinition left, TextFormatDefinition right)
Parameters
TextFormatDefinition
left
The left. |
TextFormatDefinition
right
The right. |
Returns
System.Boolean
The result of the operator. |