共用方式為


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。)
公用屬性 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。)
公用方法 GetEnumerator Gets an IEnumerator interface that allows you to iterate through the collection. (繼承自 StyleBase。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 SetStyle Sets a specified style property within a style collection to the given value. (繼承自 StyleBase。)
公用方法 ToString (繼承自 Object。)

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.ReportingServices.ReportRendering 命名空間