粗体 Class

提供一个内联级别的内容元素,该元素导致内容以粗体形式呈现。

继承

Object
  DependencyObject
    TextElement
      Inline
        Span
          Bold

语法


public sealed class Bold : Span


<Bold>text</Bold>

特性

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

成员

Bold类 具有这些类型的成员:

构造函数

Bold类 具有这些构造函数。

构造函数说明
Bold Initializes a new instance of the Bold class.

 

方法

The Bold 类 具有这些方法。 它还继承方法于Object 类.

方法说明
ClearValue Clears the local value of a dependency property. (继承自DependencyObject)
FindName Retrieves an object in the object model / runtime object graph by referencing the object's x:Name or Name attribute value. (继承自TextElement)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (继承自DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (继承自DependencyObject)
OnDisconnectVisualChildren Override this method to implement how layout and logic should behave when items are removed from a class-specific content or child property. (继承自TextElement)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (继承自DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (继承自DependencyObject)

 

属性

Bold类 具有这些属性。

属性访问类型说明

CharacterSpacing

读/写Gets or sets the uniform spacing between characters, in units of 1/1000 of an em. (继承自TextElement)

ContentEnd

只读Gets a TextPointer that represents the end of the content in the element. (继承自TextElement)

ContentStart

只读Gets a TextPointer that represents the start of content in the element. (继承自TextElement)

Dispatcher

只读Gets the CoreDispatcher that this object is associated with. (继承自DependencyObject)

ElementEnd

只读Gets a TextPointer that represents the position just after the end of the element. (继承自TextElement)

ElementStart

只读Gets a TextPointer that represents the position just before the start of the element. (继承自TextElement)

FontFamily

读/写Gets or sets the preferred top-level font family for the content of the element. (继承自TextElement)

FontSize

读/写Gets or sets the font size for the content of the element. (继承自TextElement)

FontStretch

读/写Gets or sets the glyph width of the font in a family to select. (继承自TextElement)

FontStyle

读/写Gets or sets the font style for the content in this element. (继承自TextElement)

FontWeight

读/写Gets or sets the top-level font weight to select from the font family for the content in this element. (继承自TextElement)

Foreground

读/写Gets or sets the Brush to apply to the content in this element. (继承自TextElement)

Inlines

读/写Gets an InlineCollection containing the top-level inline elements that include the contents of Span. (继承自Span)

Language

读/写Gets or sets localization/globalization language information that applies to a TextElement. (继承自TextElement)

Name

只读Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML. (继承自TextElement)

 

要求

最低支持客户端

Windows 8 [仅 Windows 应用商店应用程序]

最低支持服务器

Windows Server 2012 [仅 Windows 应用商店应用程序]

命名空间

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

元数据

Windows.winmd

另请参见

Span

 

 

显示:
© 2015 Microsoft