Loe inglise keeles

Jagamisviis:


StyleProperties.Item[] Property

Definition

Gets the specified style from the collection.

Overloads

Item[Int32]

Gets the value of the style located in the collection at the position indicated by the index. In C#, this property is the indexer for the StyleProperties class.

Item[String]

Gets the specified style from the collection.

Item[Int32]

Gets the value of the style located in the collection at the position indicated by the index. In C#, this property is the indexer for the StyleProperties class.

C#
public object this[int index] { get; }

Parameters

index
Int32

The zero-based index of the style value to find in the collection.

Property Value

An Object containing the value of the style found in the location specified by the index.

Remarks

The objects referenced in the StyleProperties class are the same as those in the Style class, however the Style class differentiates between shared and non-shared properties.

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Applies to

SQL Server .NET SDK 2016
Toode Versioonid
SQL Server .NET SDK 2016

Item[String]

Gets the specified style from the collection.

C#
public object this[string styleName] { get; }

Parameters

styleName
String

The name of the style.

Property Value

An Object containing the style that matches the name specified in the styleName parameter.

Remarks

Retrieves the parameter from the collection that matches the name specified in the styleName parameter. In C#, this property is the indexer for the StyleProperties class.

The objects referenced in the StyleProperties collections are the same as the Style collection, however the Style class differentiates between shared and non-shared properties.

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Applies to

SQL Server .NET SDK 2016
Toode Versioonid
SQL Server .NET SDK 2016