menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridFontInfo - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    StyleInfoBase
    StyleInfoSubObjectBase
    GridFontInfo
    Implements
    IStyleInfo
    ISupportInitialize
    System.IFormattable
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    System.IDisposable
    Inherited Members
    StyleInfoBase.add_Changed(StyleChangedEventHandler)
    StyleInfoBase.add_Changing(StyleChangedEventHandler)
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    StyleInfoBase.Dispose()
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetSchema()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.Identity
    StyleInfoBase.IsChanged
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.remove_Changed(StyleChangedEventHandler)
    StyleInfoBase.remove_Changing(StyleChangedEventHandler)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.Store
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.Updating
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoSubObjectBase.Data
    StyleInfoSubObjectBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoSubObjectBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoSubObjectBase.Owner
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.SubObjectIdentity
    Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
    Assembly: Syncfusion.SfCellGrid.UWP.dll
    Syntax
    public class GridFontInfo : StyleInfoSubObjectBase, IStyleInfo, ISupportInitialize, IFormattable, 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 that holds the indentity for this GridFontInfo.

    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 that holds the indentity for this GridFontInfo.

    A GridFontInfoStore that holds data for this GridFontInfo. All changes in this style object will saved in the GridFontInfoStore object.
    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
    Windows.UI.Xaml.Media.FontFamily

    FontSize

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type
    System.Double

    FontStretch

    Declaration
    public FontStretch FontStretch { get; set; }
    Property Value
    Type
    Windows.UI.Text.FontStretch

    FontStyle

    Declaration
    public FontStyle FontStyle { get; set; }
    Property Value
    Type
    Windows.UI.Text.FontStyle

    FontWeight

    Declaration
    public FontWeight FontWeight { get; set; }
    Property Value
    Type
    Windows.UI.Text.FontWeight

    HasFontFamily

    Determines if has been initialized for the current object.

    Declaration
    public bool HasFontFamily { get; }
    Property Value
    Type
    System.Boolean

    HasFontSize

    Determines if has been initialized for the current object.

    Declaration
    public bool HasFontSize { get; }
    Property Value
    Type
    System.Boolean

    HasFontStretch

    Determines if has been initialized for the current object.

    Declaration
    public bool HasFontStretch { get; }
    Property Value
    Type
    System.Boolean

    HasFontStyle

    Determines if has been initialized for the current object.

    Declaration
    public bool HasFontStyle { get; }
    Property Value
    Type
    System.Boolean

    HasFontWeight

    Determines if has been initialized for the current object.

    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

    Orientation

    Gets or sets the orientation of this GridFontInfo object.

    Declaration
    public int Orientation { get; set; }
    Property Value
    Type
    System.Int32

    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
    StyleInfoSubObjectBase.Dispose(Boolean)

    GetDefaultStyle()

    Declaration
    protected override StyleInfoBase GetDefaultStyle()
    Returns
    Type
    StyleInfoBase
    Overrides
    StyleInfoBase.GetDefaultStyle()

    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
    StyleInfoSubObjectBase.MakeCopy(StyleInfoBase, StyleInfoProperty)

    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()

    Implements

    IStyleInfo
    ISupportInitialize
    System.IFormattable
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved