IStylesProvider IStylesProvider IStylesProvider IStylesProvider Interface

Definition

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

public : interface IStylesProvider
public interface IStylesProvider
Public Interface IStylesProvider
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 : Platform::String ExtendedProperties { get; }
public string ExtendedProperties { get; }
Public ReadOnly Property ExtendedProperties As string
var string = iStylesProvider.extendedProperties;
Value
Platform::String 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 Color
var color = iStylesProvider.fillColor;
Value
Color Color Color Color

The fill color, represented as a Windows Runtime Color 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 Color
var color = iStylesProvider.fillPatternColor;
Value
Color Color Color Color

The color of the fill pattern, represented as a Windows Runtime Color value.

FillPatternStyle FillPatternStyle FillPatternStyle FillPatternStyle

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

public : Platform::String FillPatternStyle { get; }
public string FillPatternStyle { get; }
Public ReadOnly Property FillPatternStyle As string
var string = iStylesProvider.fillPatternStyle;
Value
Platform::String 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 : Platform::String Shape { get; }
public string Shape { get; }
Public ReadOnly Property Shape As string
var string = iStylesProvider.shape;
Value
Platform::String 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 int
var int = iStylesProvider.styleId;
Value
int 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 : Platform::String StyleName { get; }
public string StyleName { get; }
Public ReadOnly Property StyleName As string
var string = iStylesProvider.styleName;
Value
Platform::String string string string

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