Class GridFontInfo
Provides a StyleInfoSubObjectBase object for font settings in a cell. Each font property of the cell can be configured individually.
Font properties thathave not been initialized will inherit default values from a base style.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridFontInfo : StyleInfoSubObjectBase, IDisposable, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject
Constructors
GridFontInfo()
Initializes a GridFontInfo
Declaration
public GridFontInfo()
GridFontInfo(StyleInfoSubObjectIdentity)
Initalizes a new GridFontInfo object and associates it with an existing
Declaration
public GridFontInfo(StyleInfoSubObjectIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridFontInfo(StyleInfoSubObjectIdentity, GridFontInfoStore)
Initalizes a new GridFontInfo object and associates it with an existing
Declaration
public GridFontInfo(StyleInfoSubObjectIdentity identity, GridFontInfoStore store)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoSubObjectIdentity | identity | A |
GridFontInfoStore | store |
Properties
Default
Returns a default GridFontInfo to be used with a default style.
Declaration
public static GridFontInfo Default { get; }
Property Value
Type |
---|
GridFontInfo |
Remarks
The Default of the GridStyleInfo class will return the default border info that this method generates through its overriden version of GetDefaultStyle().
FontFamily
Gets or sets the font family of this GridFontInfo object.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type |
---|
System.Windows.Media.FontFamily |
FontSize
Gets or sets the font size of this GridFontInfo object.
Declaration
public double FontSize { get; set; }
Property Value
Type |
---|
System.Double |
FontStretch
Gets or sets the degree to which the font has been stretched compared to the normal aspect ratio of the font.
Declaration
public FontStretch FontStretch { get; set; }
Property Value
Type |
---|
System.Windows.FontStretch |
FontStyle
Gets or sets the font style of this GridFontInfo object.
Declaration
public FontStyle FontStyle { get; set; }
Property Value
Type |
---|
System.Windows.FontStyle |
FontWeight
Gets or sets the font weight of this GridFontInfo object.
Declaration
public FontWeight FontWeight { get; set; }
Property Value
Type |
---|
System.Windows.FontWeight |
HasFontFamily
Determines if
Declaration
public bool HasFontFamily { get; }
Property Value
Type |
---|
System.Boolean |
HasFontSize
Determines if
Declaration
public bool HasFontSize { get; }
Property Value
Type |
---|
System.Boolean |
HasFontStretch
Determines if
Declaration
public bool HasFontStretch { get; }
Property Value
Type |
---|
System.Boolean |
HasFontStyle
Determines if
Declaration
public bool HasFontStyle { get; }
Property Value
Type |
---|
System.Boolean |
HasFontWeight
Determines if
Declaration
public bool HasFontWeight { get; }
Property Value
Type |
---|
System.Boolean |
HasOrientation
Determines if the Orientation property has been initialized.
Declaration
public bool HasOrientation { get; }
Property Value
Type |
---|
System.Boolean |
HasTextDecorations
Determines if
Declaration
public bool HasTextDecorations { get; }
Property Value
Type |
---|
System.Boolean |
Orientation
Gets or sets the orientation of this GridFontInfo object.
Declaration
public int Orientation { get; set; }
Property Value
Type |
---|
System.Int32 |
TextDecorations
Gets or sets the text decoration of this GridFontInfo object.
Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
Type |
---|
System.Windows.TextDecorationCollection |
Typeface
Creates or returns a cached Typeface generated from font information of this style object.
Declaration
public Typeface Typeface { get; }
Property Value
Type |
---|
System.Windows.Media.Typeface |
Methods
Dispose()
Releases the all resources used by the Component.
Declaration
public override void Dispose()
Overrides
GetDefaultStyle()
Declaration
protected override StyleInfoBase GetDefaultStyle()
Returns
Type |
---|
StyleInfoBase |
Overrides
GetLineHeightValue()
Gets actual value of LineHeight property. If LineHeight is Double.Nan, returns FontSize*FontFamily.LineSpacing
Declaration
public double GetLineHeightValue()
Returns
Type |
---|
System.Double |
GetTypeface()
Gets the type face.
Declaration
public Typeface GetTypeface()
Returns
Type | Description |
---|---|
System.Windows.Media.Typeface | Type face. |
MakeCopy(StyleInfoBase, StyleInfoProperty)
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoBase | newOwner | |
StyleInfoProperty | sip |
Returns
Type |
---|
IStyleInfoSubObject |
Overrides
OnStyleChanged(StyleInfoProperty)
Declaration
protected override void OnStyleChanged(StyleInfoProperty sip)
Parameters
Type | Name | Description |
---|---|---|
StyleInfoProperty | sip |
Overrides
ResetFontFamily()
Resets
Declaration
public void ResetFontFamily()
ResetFontSize()
Resets
Declaration
public void ResetFontSize()
ResetFontStretch()
Resets
Declaration
public void ResetFontStretch()
ResetFontStyle()
Resets
Declaration
public void ResetFontStyle()
ResetFontWeight()
Resets
Declaration
public void ResetFontWeight()
ResetOrientation()
Resets the Orientation property.
Declaration
public void ResetOrientation()
ResetTextDecorations()
Resets
Declaration
public void ResetTextDecorations()