Class CharacterFormat
Represents character (text) format.
Inheritance
System.Object
CharacterFormat
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.DLS.Base.dll
public class CharacterFormat : FormatBase, IEntityBase, IXDLSSerializable
Constructors
Declaration
Declaration
public CharacterFormat(IDocument doc)
Parameters
Fields
Declaration
public const int BoldKey = 4
Field Value
Declaration
protected const string DEF_FONTFAMILY = "Times New Roman"
Field Value
Declaration
protected const float DEF_FONTSIZE = 10F
Field Value
Declaration
public const int DoubleStrikeKey = 14
Field Value
Declaration
public const int FontKey = 0
Field Value
Declaration
public const int FontNameKey = 2
Field Value
Declaration
public const int FontSizeKey = 3
Field Value
Declaration
public const int ItalicKey = 5
Field Value
Declaration
public const int LineBreakKey = 20
Field Value
Declaration
public const int PositionKey = 17
Field Value
Declaration
public const int SpacingKey = 18
Field Value
Declaration
public const int StrikeKey = 6
Field Value
Declaration
public const int SubSuperScriptKey = 10
Field Value
TextBkgColorKey
Declaration
public const int TextBkgColorKey = 9
Field Value
TextColorKey
Declaration
public const int TextColorKey = 1
Field Value
Declaration
public const int UnderlineKey = 7
Field Value
Properties
Declaration
public bool Bold { get; set; }
Property Value
Gets / sets space width between characters.
Declaration
public float CharacterSpacing { get; set; }
Property Value
Gets / sets doublestrikeout style
Declaration
public bool DoubleStrike { get; set; }
Property Value
Gets / sets font as System.Drawing.Font
Declaration
public Font Font { get; set; }
Property Value
Declaration
public string FontName { get; set; }
Property Value
Declaration
public float FontSize { get; set; }
Property Value
Declaration
public bool Italic { get; set; }
Property Value
Gets / sets line break after.
Declaration
public bool LineBreak { get; set; }
Property Value
Gets / sets text vertical position.
Declaration
public float Position { get; set; }
Property Value
Gets / sets strikeout style
Declaration
public bool Strikeout { get; set; }
Property Value
Gets / sets subscript/superscript mode
Declaration
public SubSuperScript SubSuperScript { get; set; }
Property Value
TextBackgroundColor
Gets / sets text background color
Declaration
public Color TextBackgroundColor { get; set; }
Property Value
Type |
System.Drawing.Color |
TextColor
Declaration
public Color TextColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets / sets underline style
Declaration
public UnderlineStyle UnderlineStyle { get; set; }
Property Value
Methods
Declaration
protected override object GetDefValue(int key)
Parameters
Type |
Name |
Description |
System.Int32 |
key |
|
Returns
Overrides
Declaration
protected override void InitXDLSHolder()
Overrides
Called when updates font name.
Declaration
protected virtual void OnUpdateFontName(string fontName)
Parameters
Type |
Name |
Description |
System.String |
fontName |
Name of the font.
|
Declaration
protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
Parameters
Overrides
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Overrides
Implements