语言

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框架格式字符串。

(继承自 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()

它有一个IE分分子接口,允许你在集合中迭代。

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

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

(继承自 StyleBase)

适用于