WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GraphicStyleInfo

    Show / Hide Table of Contents

    Class GraphicStyleInfo

    Inheritance
    System.Object
    StyleInfoBase
    GraphicStyleInfo
    Implements
    IStyleInfo
    System.ComponentModel.ISupportInitialize
    System.IFormattable
    System.IConvertible
    System.Xml.Serialization.IXmlSerializable
    System.IDisposable
    Inherited Members
    StyleInfoBase.SetStore(StyleInfoStore)
    StyleInfoBase.ClearCache()
    StyleInfoBase.Dispose()
    StyleInfoBase.Equals(Object)
    StyleInfoBase.EqualsObject(Object, Object)
    StyleInfoBase.GetHashCode()
    StyleInfoBase.ToString()
    StyleInfoBase.ToString(String)
    StyleInfoBase.ToString(String, IFormatProvider)
    StyleInfoBase.ParseString(String)
    StyleInfoBase.BeginInit()
    StyleInfoBase.EndInit()
    StyleInfoBase.BeginUpdate()
    StyleInfoBase.EndUpdate()
    StyleInfoBase.GetDefaultStyleInfoStore(StyleInfoProperty)
    StyleInfoBase.IntGetDefaultStyleInfo(StyleInfoProperty)
    StyleInfoBase.OnStyleChanged(StyleInfoProperty)
    StyleInfoBase.OnStyleChanging(StyleInfoProperty)
    StyleInfoBase.IsSubset(IStyleInfo)
    StyleInfoBase.CopyFrom(IStyleInfo)
    StyleInfoBase.ModifyStyle(IStyleInfo, StyleModifyType)
    StyleInfoBase.MergeStyle(IStyleInfo)
    StyleInfoBase.HasValue(StyleInfoProperty)
    StyleInfoBase.IsValueModified(StyleInfoProperty)
    StyleInfoBase.ResetValue(StyleInfoProperty)
    StyleInfoBase.GetValue(StyleInfoProperty)
    StyleInfoBase.GetDefaultValue(StyleInfoProperty)
    StyleInfoBase.GetShortValue(StyleInfoProperty)
    StyleInfoBase.SetValue(StyleInfoProperty, Object)
    StyleInfoBase.SetValue(StyleInfoProperty, Int16)
    StyleInfoBase.IConvertible.ToUInt64(IFormatProvider)
    StyleInfoBase.IConvertible.ToSByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToDouble(IFormatProvider)
    StyleInfoBase.IConvertible.ToDateTime(IFormatProvider)
    StyleInfoBase.IConvertible.ToSingle(IFormatProvider)
    StyleInfoBase.IConvertible.ToBoolean(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt32(IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt16(IFormatProvider)
    StyleInfoBase.IConvertible.ToString(IFormatProvider)
    StyleInfoBase.IConvertible.ToByte(IFormatProvider)
    StyleInfoBase.IConvertible.ToChar(IFormatProvider)
    StyleInfoBase.IConvertible.ToInt64(IFormatProvider)
    StyleInfoBase.IConvertible.GetTypeCode()
    StyleInfoBase.IConvertible.ToDecimal(IFormatProvider)
    StyleInfoBase.IConvertible.ToType(Type, IFormatProvider)
    StyleInfoBase.IConvertible.ToUInt32(IFormatProvider)
    StyleInfoBase.WriteXml(XmlWriter)
    StyleInfoBase.ReadXml(XmlReader)
    StyleInfoBase.Identity
    StyleInfoBase.CacheValues
    StyleInfoBase.WeakReferenceChangedListeners
    StyleInfoBase.Updating
    StyleInfoBase.IsEmpty
    StyleInfoBase.IsChanged
    StyleInfoBase.Changed
    StyleInfoBase.Changing
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GraphicStyleInfo : StyleInfoBase, IStyleInfo, ISupportInitialize, IFormattable, IConvertible, IXmlSerializable, IDisposable

    Constructors

    GraphicStyleInfo()

    Initializes a new style object.

    Declaration
    public GraphicStyleInfo()

    GraphicStyleInfo(GraphicStyleInfo)

    Initializes a new style object and copies all data from an existing style object.

    Declaration
    public GraphicStyleInfo(GraphicStyleInfo style)
    Parameters
    Type Name Description
    GraphicStyleInfo style

    The style object that contains the original data.

    GraphicStyleInfo(GraphicStyleInfoStore)

    Initializes a new style object and associates it with an existing GridStyleInfoStore.

    Declaration
    public GraphicStyleInfo(GraphicStyleInfoStore store)
    Parameters
    Type Name Description
    GraphicStyleInfoStore store

    A GridStyleInfoStore that holds data for this GridStyleInfo. All changes in this style object will be saved in the GridStyleInfoStore object.

    GraphicStyleInfo(StyleInfoIdentityBase)

    Initializes a new style object and associates it with an existing GridStyleInfoIdentity.

    Declaration
    public GraphicStyleInfo(StyleInfoIdentityBase identity)
    Parameters
    Type Name Description
    StyleInfoIdentityBase identity

    A GridStyleInfoIdentity that holds the indentity for this GridStyleInfo.

    GraphicStyleInfo(StyleInfoIdentityBase, GraphicStyleInfoStore)

    Initializes a new style object and associates it with an existing GridStyleInfoIdentity.

    Declaration
    public GraphicStyleInfo(StyleInfoIdentityBase identity, GraphicStyleInfoStore store)
    Parameters
    Type Name Description
    StyleInfoIdentityBase identity

    A GridStyleInfoIdentity that holds the indentity for this GridStyleInfo.

    GraphicStyleInfoStore store

    A GridStyleInfoStore that holds data for this GridStyleInfo. All changes in this style object will be saved in the GridStyleInfoStore object.

    Properties

    Background

    Declaration
    public Brush Background { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    BorderBrush

    Declaration
    public Brush BorderBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    BorderThickness

    Declaration
    public Thickness BorderThickness { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    CellIdentity

    Holds identity information such as row and column index for the current GridStyleInfo.

    Declaration
    public GraphicStyleInfoIdentity CellIdentity { get; set; }
    Property Value
    Type Description
    GraphicStyleInfoIdentity

    CellIndex

    Returns the cell row column index.

    Declaration
    public int CellIndex { get; }
    Property Value
    Type Description
    System.Int32

    CellName

    Declaration
    public string CellName { get; set; }
    Property Value
    Type Description
    System.String

    CellType

    Declaration
    public string CellType { get; set; }
    Property Value
    Type Description
    System.String

    CellValue

    Declaration
    public object CellValue { get; set; }
    Property Value
    Type Description
    System.Object

    Default

    Declaration
    public static GraphicStyleInfo Default { get; }
    Property Value
    Type Description
    GraphicStyleInfo

    Enabled

    Gets or sets a value indicating whether the Graphic cell is locked or not.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    Foreground

    Declaration
    public Brush Foreground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    GraphicCellControl

    Declaration
    public GraphicCellControl GraphicCellControl { get; set; }
    Property Value
    Type Description
    GraphicCellControl

    GraphicModel

    Returns the grid model.

    Declaration
    public GraphicModel GraphicModel { get; }
    Property Value
    Type Description
    GraphicModel

    HasBackground

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

    HasBorderBrush

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

    HasBorderThickness

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

    HasCellType

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

    HasCellValue

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

    HasEnabled

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

    HasForeground

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

    HasHorizontalAlignment

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

    HasReadOnly

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

    HasVerticalAlignment

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

    HorizontalAlignment

    Declaration
    public HorizontalAlignment HorizontalAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.HorizontalAlignment

    ReadOnly

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    Store

    The GridStyleInfoStore object that holds all the data for this style object.

    Declaration
    public GraphicStyleInfoStore Store { get; }
    Property Value
    Type Description
    GraphicStyleInfoStore

    Text

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    VerticalAlignment

    Declaration
    public VerticalAlignment VerticalAlignment { get; set; }
    Property Value
    Type Description
    System.Windows.VerticalAlignment

    Methods

    CreateSubObjectIdentity(StyleInfoProperty)

    Creates a new StyleInfoSubObjectIdentity object and associate it with this GridStyleInfo object.

    Declaration
    public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    The StyleInfoProperty descriptor for this subobject.

    Returns
    Type Description
    StyleInfoSubObjectIdentity

    The StyleInfoSubObjectIdentity object that this method creates.

    Overrides
    StyleInfoBase.CreateSubObjectIdentity(StyleInfoProperty)

    GetDefaultStyle()

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

    GetOffLineCopy()

    Creates a new GridStyleInfo and copies its cell and identity information from the current object. The new instance will be made off line so that changes in this style object are not be stored in the GridData

    Declaration
    public GraphicStyleInfo GetOffLineCopy()
    Returns
    Type Description
    GraphicStyleInfo

    A new GridStyleInfo instance.

    Remarks

    Lets a style object load base styles and default values but disables saving changes back to the grid. (see OnStyleChanged below)

    ResetBackground()

    Declaration
    public void ResetBackground()

    ResetBorderBrush()

    Declaration
    public void ResetBorderBrush()

    ResetBorderThickness()

    Declaration
    public void ResetBorderThickness()

    ResetCellValue()

    Declaration
    public void ResetCellValue()

    ResetEnabled()

    Declaration
    public void ResetEnabled()

    ResetForeground()

    Declaration
    public void ResetForeground()

    ResetHorizontalAlignment()

    Declaration
    public void ResetHorizontalAlignment()

    ResetReadOnly()

    Declaration
    public void ResetReadOnly()

    ResetVerticalAlignment()

    Declaration
    public void ResetVerticalAlignment()

    Implements

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