Style Class

Represents a collection of named style properties for a report item. This collection can be accessed by name or index. This class cannot be inherited.


Namespace:  Microsoft.ReportingServices.ReportRendering
Assembly:  Microsoft.ReportingServices.ProcessingCore (in Microsoft.ReportingServices.ProcessingCore.dll)

public sealed class Style : StyleBase

The Style type exposes the following members.

Public methodStyleInitializes a new instance of the Style class.

Public propertyCountNumber of style properties in the collection. (Overrides StyleBase.Count.)
Protected propertyIsCustomControlInfrastructure. (Inherited from StyleBase.)
Public propertyItem[String]Gets the value of the specified style that matches the name given in the styleName parameter. In C#, this property is the indexer for the Style class. (Overrides StyleBase.Item[String].)
Public propertyItem[Int32]Returns a style at the specified index. (Inherited from StyleBase.)
Public propertyKeysGets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance. (Overrides StyleBase.Keys.)
Public propertyNonSharedPropertiesGets a StyleProperties collection that contains the properties that may be different for each instance of the report item due to expressions. (Overrides StyleBase.NonSharedProperties.)
Public propertySharedPropertiesGets a StyleProperties collection that contains the properties shared by all report item instances that are derived from the same report item in the definition. (Overrides StyleBase.SharedProperties.)

Public methodContainStylePropertyIndicates whether this collection contains a named style property. (Inherited from StyleBase.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorGets an IEnumerator interface that allows you to iterate through the collection. (Inherited from StyleBase.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSetStyleSets a specified style property within a style collection to the given value. (Inherited from StyleBase.)
Public methodToString (Inherited from Object.)

Protected fieldm_isCustomControlGeneratedInfrastructure. (Inherited from StyleBase.)
Protected fieldm_nonSharedPropertiesInfrastructure. (Inherited from StyleBase.)
Protected fieldm_sharedPropertiesInfrastructure. (Inherited from StyleBase.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions