Style 类

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.

继承层次结构

System. . :: . .Object
  Microsoft.ReportingServices.ReportRendering. . :: . .StyleBase
    Microsoft.ReportingServices.ReportRendering..::..Style

命名空间:  Microsoft.ReportingServices.ReportRendering
程序集:  Microsoft.ReportingServices.ProcessingCore(在 Microsoft.ReportingServices.ProcessingCore.dll 中)

语法

声明
Public NotInheritable Class Style _
    Inherits StyleBase
用法
Dim instance As Style
public sealed class Style : StyleBase
public ref class Style sealed : public StyleBase
[<SealedAttribute>]
type Style =  
    class
        inherit StyleBase
    end
public final class Style extends StyleBase

Style 类型公开以下成员。

构造函数

  名称 说明
公共方法 Style Initializes a new instance of the Style class.

页首

属性

  名称 说明
公共属性 Count Number of style properties in the collection. (覆盖 StyleBase. . :: . .Count。)
受保护属性 IsCustomControl 基础结构。 (从 StyleBase 继承。)
公共属性 Item[ ( [ ( 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. (覆盖 StyleBase. . :: . .Item[ ( [ ( String] ) ] ) 。)
公共属性 Item[ ( [ ( Int32] ) ] ) Returns a style at the specified index. (从 StyleBase 继承。)
公共属性 Keys Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance. (覆盖 StyleBase. . :: . .Keys。)
公共属性 NonSharedProperties Gets a StyleProperties collection that contains the properties that may be different for each instance of the report item due to expressions. (覆盖 StyleBase. . :: . .NonSharedProperties。)
公共属性 SharedProperties Gets a StyleProperties collection that contains the properties shared by all report item instances that are derived from the same report item in the definition. (覆盖 StyleBase. . :: . .SharedProperties。)

页首

方法

  名称 说明
公共方法 ContainStyleProperty Indicates whether this collection contains a named style property. (从 StyleBase 继承。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetEnumerator Gets an IEnumerator interface that allows you to iterate through the collection. (从 StyleBase 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 SetStyle Sets a specified style property within a style collection to the given value. (从 StyleBase 继承。)
公共方法 ToString (从 Object 继承。)

页首

字段

  名称 说明
受保护字段 m_isCustomControlGenerated 基础结构。 (从 StyleBase 继承。)
受保护字段 m_nonSharedProperties 基础结构。 (从 StyleBase 继承。)
受保护字段 m_sharedProperties 基础结构。 (从 StyleBase 继承。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。