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.UI.Xaml.CellGrid.Styles
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class GridFontInfo : StyleInfoSubObjectBase, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IStyleInfoSubObject, IDisposable
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
Declaration
public FontFamily FontFamily { get; set; }
Property Value
| Type |
|---|
| System.Windows.Media.FontFamily |
FontSize
Declaration
public double FontSize { get; set; }
Property Value
| Type |
|---|
| System.Double |
FontStretch
Declaration
public FontStretch FontStretch { get; set; }
Property Value
| Type |
|---|
| System.Windows.FontStretch |
FontStyle
Declaration
public FontStyle FontStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.FontStyle |
FontWeight
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
Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
| Type |
|---|
| System.Windows.TextDecorationCollection |
Methods
Dispose(Boolean)
Releases the all resources used by the Component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | Dispose the instance, if it is True |
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 |
MakeCopy(StyleInfoBase, StyleInfoProperty)
Declaration
public override IStyleInfoSubObject MakeCopy(StyleInfoBase newOwner, StyleInfoProperty sip)
Parameters
| Type | Name | Description |
|---|---|---|
| StyleInfoBase | newOwner | |
| StyleInfoProperty | sip |
Returns
| Type |
|---|
| IStyleInfoSubObject |
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()