IStylesProvider IStylesProvider IStylesProvider Interface

Provides access to the visual styles associated with the content of a document.

Syntax

Declaration

public interface IStylesProviderpublic interface IStylesProviderPublic Interface IStylesProvider

Properties summary

Gets a string value that contains additional property info. The info is for properties are that are not included in this control pattern, but that provide information about the document content that might be useful to the user.

Gets the fill color of an element in a document.

Gets the color of the pattern used to fill an element in a document.

Gets a string that represents the fill pattern style of an element in a document.

Gets a string that represents the shape of an element in a document.

Gets the identifier for a visual style of an element in a document.

Gets the name of the visual style of an element in a document.

Properties

  • ExtendedProperties
    ExtendedProperties
    ExtendedProperties
    ExtendedProperties

    Gets a string value that contains additional property info. The info is for properties are that are not included in this control pattern, but that provide information about the document content that might be useful to the user.

    public string ExtendedProperties { get; }public string ExtendedProperties { get; }Public ReadOnly Property ExtendedProperties As stringpublic string ExtendedProperties { get; }

    Property Value

    • string
      string
      string

      A localized, formatted string that contains the list of extended properties. The string must be formatted as a list of name/value pairs, as follows: "prop1=value;prop2=value2".

  • FillColor
    FillColor
    FillColor
    FillColor

    Gets the fill color of an element in a document.

    public Color FillColor { get; }public Color FillColor { get; }Public ReadOnly Property FillColor As Colorpublic Color FillColor { get; }

    Property Value

  • FillPatternColor
    FillPatternColor
    FillPatternColor
    FillPatternColor

    Gets the color of the pattern used to fill an element in a document.

    public Color FillPatternColor { get; }public Color FillPatternColor { get; }Public ReadOnly Property FillPatternColor As Colorpublic Color FillPatternColor { get; }

    Property Value

  • FillPatternStyle
    FillPatternStyle
    FillPatternStyle
    FillPatternStyle

    Gets a string that represents the fill pattern style of an element in a document.

    public string FillPatternStyle { get; }public string FillPatternStyle { get; }Public ReadOnly Property FillPatternStyle As stringpublic string FillPatternStyle { get; }

    Property Value

    • string
      string
      string

      A localized string that indicates the fill pattern style, such as "Vertical Stripe".

  • Shape
    Shape
    Shape
    Shape

    Gets a string that represents the shape of an element in a document.

    public string Shape { get; }public string Shape { get; }Public ReadOnly Property Shape As stringpublic string Shape { get; }

    Property Value

    • string
      string
      string

      A localized string that indicates the shape.

  • StyleId
    StyleId
    StyleId
    StyleId

    Gets the identifier for a visual style of an element in a document.

    public int StyleId { get; }public int StyleId { get; }Public ReadOnly Property StyleId As intpublic int StyleId { get; }

    Property Value

    • int
      int
      int

      The style identifier. For a list of possible values, see Style Identifiers.

  • StyleName
    StyleName
    StyleName
    StyleName

    Gets the name of the visual style of an element in a document.

    public string StyleName { get; }public string StyleName { get; }Public ReadOnly Property StyleName As stringpublic string StyleName { get; }

    Property Value

    • string
      string
      string

      The name of the style, or empty string if the style has no name.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Provider.dll