Style 类

定义

表示报表项的已命名样式属性的集合。 可通过名称或索引访问此集合。 此类不能被继承。

public ref class Style sealed : Microsoft::ReportingServices::ReportRendering::StyleBase
public sealed class Style : Microsoft.ReportingServices.ReportRendering.StyleBase
type Style = class
    inherit StyleBase
Public NotInheritable Class Style
Inherits StyleBase
继承

构造函数

Style()

初始化 Style 类的新实例。

字段

BackgroundColor

指定背景的颜色。 如果省略,则背景色为透明色。

(继承自 StyleBase)
BackgroundGradientEndColor

指定背景渐变的结束颜色。

(继承自 StyleBase)
BackgroundGradientType

指定背景渐变的类型。

(继承自 StyleBase)
BackgroundImage

指定背景图像。 如果省略,则没有背景图像。

(继承自 StyleBase)
BackgroundImageMIMEType

指定背景图像的 MIME 类型。

(继承自 StyleBase)
BackgroundImageSource

指定背景图像的源。

(继承自 StyleBase)
BackgroundImageValue

指定背景图像的值。

(继承自 StyleBase)
BackgroundRepeat

指定背景图像应如何重复以填满可用空间。

(继承自 StyleBase)
BorderColor

指定没有为任何特定边框设置颜色时的边框颜色。

(继承自 StyleBase)
BorderColorBottom

指定下边框的颜色。

(继承自 StyleBase)
BorderColorLeft

指定左边框的颜色。

(继承自 StyleBase)
BorderColorRight

指定右边框的颜色。

(继承自 StyleBase)
BorderColorTop

指定上边框的颜色。

(继承自 StyleBase)
BorderStyle

指定没有为任何特定边框设置样式时的边框样式。

(继承自 StyleBase)
BorderStyleBottom

指定下边框的样式。

(继承自 StyleBase)
BorderStyleLeft

指定左边框的样式。

(继承自 StyleBase)
BorderStyleRight

指定右边框的样式。

(继承自 StyleBase)
BorderStyleTop

指定上边框的样式。

(继承自 StyleBase)
BorderWidth

指定没有为任何特定边框设置宽度时的边框宽度。

(继承自 StyleBase)
BorderWidthBottom

指定下边框的宽度。

(继承自 StyleBase)
BorderWidthLeft

指定左边框的宽度。

(继承自 StyleBase)
BorderWidthRight

指定右边框的宽度。

(继承自 StyleBase)
BorderWidthTop

指定上边框的宽度。

(继承自 StyleBase)
Calendar

指定用来设置日期格式的日历。

(继承自 StyleBase)
Color

指定前景色。

(继承自 StyleBase)
CurrencyLanguage

指定货币语言。

(继承自 StyleBase)
Direction

指定文本是从左向右写入还是从右向左写入以及矩阵是向右增加(标题在左侧)还是向左增加(标题在右侧)。

(继承自 StyleBase)
FontFamily

指定字体系列的名称。

(继承自 StyleBase)
FontSize

指定字号。

(继承自 StyleBase)
FontStyle

指定字体样式。

(继承自 StyleBase)
FontWeight

指定字体粗细。

(继承自 StyleBase)
Format

指定 .NET Framework 格式设置字符串。

(继承自 StyleBase)
Language

指定文本的主要语言。

(继承自 StyleBase)
LineHeight

指定文本行的高度。

(继承自 StyleBase)
m_isCustomControlGenerated

指定控件是否为自定义控件。

(继承自 StyleBase)
m_nonSharedProperties

指定(由于表达式原因)对每个报表项均不同的样式属性。

(继承自 StyleBase)
m_sharedProperties

指定由派生于定义中相同报表项的所有报表项共享的属性。

(继承自 StyleBase)
NumeralLanguage

指定根据主要语言应使用的数字格式。

(继承自 StyleBase)
NumeralVariant

指定要使用的数字格式的变体。

(继承自 StyleBase)
PaddingBottom

指定对象下方的填充。

(继承自 StyleBase)
PaddingLeft

指定对象左侧的填充。

(继承自 StyleBase)
PaddingRight

指定对象右侧的填充。

(继承自 StyleBase)
PaddingTop

指定对象上方的填充。

(继承自 StyleBase)
StyleAttributeCount

指定样式属性数。

(继承自 StyleBase)
TextAlign

指定文本的水平对齐方式。

(继承自 StyleBase)
TextDecoration

指定文本格式。

(继承自 StyleBase)
UnicodeBiDi

指定与双向算法对应的嵌入级别。

(继承自 StyleBase)
VerticalAlign

指定文本的垂直对齐方式。

(继承自 StyleBase)
WritingMode

指定文本的写入模式。

(继承自 StyleBase)

属性

Count

集合中的样式属性数。

IsCustomControl

获取或设置一个值,该值指示控件是否为自定义控件。

(继承自 StyleBase)
Item[Int32]

返回指定索引处的样式。

(继承自 StyleBase)
Item[String]

获取与 styleName 参数中给定名称匹配的指定样式的值。 在 C# 中,此属性是 Style 类的索引器。

Keys

获取包含 NameObjectCollectionBase.KeysCollection 实例中所有键的 NameObjectCollectionBase 实例。

NonSharedProperties

获取包含可能因表达式而对报表项的每个实例均不同的属性的 StyleProperties 集合。

SharedProperties

获取包含由派生自定义中相同报表项的所有报表项实例共享的属性的 StyleProperties 集合。

方法

ContainStyleProperty(String)

指示此集合是否包含一个已命名的样式属性。

(继承自 StyleBase)
GetEnumerator()

获取使您可以遍历集合的 IEnumerator 接口。

(继承自 StyleBase)
SetStyle(Style+StyleName, Object, Boolean)

将样式集合中的指定样式属性设置为给定值。

(继承自 StyleBase)

适用于