menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridFontInfo - WPF 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
    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Inherited Members
    StyleInfoBase.BeginInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.CacheValues
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    StyleInfoBase.ClearCache()
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)
    StyleInfoBase.EndInit()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    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.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.Owner
    StyleInfoSubObjectBase.Sip
    StyleInfoSubObjectBase.SubObjectIdentity
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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 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

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

    HasTextDecorations

    Determines if has been initialized for the current object.

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

    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

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

    OnStyleChanged(StyleInfoProperty)

    Declaration
    protected override void OnStyleChanged(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip
    Overrides
    StyleInfoSubObjectBase.OnStyleChanged(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()

    ResetTextDecorations()

    Resets .

    Declaration
    public void ResetTextDecorations()

    Implements

    System.IDisposable
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    IStyleInfoSubObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved