menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IStyleInfo - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IStyleInfo

    Defines an interface implemented both by StyleInfoBase and StyleInfoStore that allows you to check the state of the object, read and write specific property and execute style operations with the ModifyStyle(IStyleInfo, StyleModifyType). method.

    Namespace: Syncfusion.Windows.Styles
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public interface IStyleInfo

    Properties

    IsChanged

    Indicates whether any properties for this object have changed since it was applied last time.

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

    IsEmpty

    Indicates whether the style is empty.

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

    Store

    Returns the StyleInfoStore object that holds all the data for this style object.

    Declaration
    StyleInfoStore Store { get; }
    Property Value
    Type
    StyleInfoStore

    Methods

    GetValue(StyleInfoProperty)

    Queries the value for a specific property that has been initialized for the current object.

    Declaration
    object GetValue(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    A StyleInfoProperty that identifies the property to operate on.

    Returns
    Type
    System.Object

    HasValue(StyleInfoProperty)

    Indicates whether a specific property has been initialized for the current object.

    Declaration
    bool HasValue(StyleInfoProperty sip)
    Parameters
    Type Name Description
    StyleInfoProperty sip

    A StyleInfoProperty that identifies the property to operate on.

    Returns
    Type
    System.Boolean

    IsSubset(IStyleInfo)

    Compares all properties with another style object and indicates whether the current set of initialized properties is a subset of the other style object.

    Declaration
    bool IsSubset(IStyleInfo style)
    Parameters
    Type Name Description
    IStyleInfo style

    The other style to compare with.

    Returns
    Type Description
    System.Boolean

    True if this style object is a subset of the other style object.

    MergeStyle(IStyleInfo)

    Merges two styles. Resets all properties that differ among the two style object and keeps only those properties that are equal.

    Declaration
    void MergeStyle(IStyleInfo style)
    Parameters
    Type Name Description
    IStyleInfo style

    The other style object this style object should merge with.

    ModifyStyle(IStyleInfo, StyleModifyType)

    Applies changes to a style object as specified with StyleModifyType.

    Declaration
    void ModifyStyle(IStyleInfo style, StyleModifyType mt)
    Parameters
    Type Name Description
    IStyleInfo style

    The style object to be applied on the current object.

    StyleModifyType mt

    The actual operation to be performed.

    ParseString(String)

    Parses a given string and applies the results to affected properties in this style object.

    Declaration
    void ParseString(string s)
    Parameters
    Type Name Description
    System.String s

    The string to be interpreted.

    Remarks

    ParseString(String) consumes strings previously generated with a ToString(String, IFormatProvider) method call.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved