Paragraph Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a block-level content element that is used to group content into a paragraph.
public ref class Paragraph sealed : Block
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
class Paragraph final : Block
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class Paragraph final : Block
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
public sealed class Paragraph : Block
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class Paragraph : Block
Public NotInheritable Class Paragraph
Inherits Block
<Paragraph .../>
-or-
<Paragraph ...>
oneOrMoreInlines
</Paragraph>
-or-
<Paragraph ...>
mixedContent
</Paragraph>
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Paragraph() |
Initializes a new instance of the Paragraph class. |
Access |
Gets or sets the access key for this element. (Inherited from TextElement) |
Access |
Gets or sets a source element that provides the access key scope for this element, even if it's not in the visual tree of the source element. (Inherited from TextElement) |
Allow |
Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it. (Inherited from TextElement) |
Character |
Gets or sets the uniform spacing between characters, in units of 1/1000 of an em. (Inherited from TextElement) |
Content |
Gets a TextPointer that represents the end of the content in the element. (Inherited from TextElement) |
Content |
Gets a TextPointer that represents the start of content in the element. (Inherited from TextElement) |
Dispatcher |
Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject) |
Element |
Gets a TextPointer that represents the position just after the end of the element. (Inherited from TextElement) |
Element |
Gets a TextPointer that represents the position just before the start of the element. (Inherited from TextElement) |
Exit |
Gets or sets a value that specifies whether the access key display is dismissed when an access key is invoked. (Inherited from TextElement) |
Font |
Gets or sets the preferred top-level font family for the content of the element. (Inherited from TextElement) |
Font |
Gets or sets the font size for the content of the element. (Inherited from TextElement) |
Font |
Gets or sets the glyph width of the font in a family to select. (Inherited from TextElement) |
Font |
Gets or sets the font style for the content in this element. (Inherited from TextElement) |
Font |
Gets or sets the top-level font weight to select from the font family for the content in this element. (Inherited from TextElement) |
Foreground |
Gets or sets the Brush to apply to the content in this element. (Inherited from TextElement) |
Horizontal |
Gets or sets a value that indicates how text is aligned in the Block. (Inherited from Block) |
Inlines |
Gets an InlineCollection containing the top-level Inline elements that include the contents of the Paragraph. |
Is |
Gets or sets a value that indicates whether an element defines its own access key scope. (Inherited from TextElement) |
Is |
Gets or sets whether automatic text enlargement, to reflect the system text size setting, is enabled. (Inherited from TextElement) |
Key |
Gets or sets a value that indicates how far left or right the keytip is placed in relation to the text element. (Inherited from TextElement) |
Key |
Gets or sets a value that indicates where the KeyTip is placed in relation to the text element. (Inherited from TextElement) |
Key |
Gets or sets a value that indicates how far up or down the keytip is placed in relation to the text element. (Inherited from TextElement) |
Language |
Gets or sets localization/globalization language information that applies to a TextElement. (Inherited from TextElement) |
Line |
Gets or sets the height of each line of content. (Inherited from Block) |
Line |
Gets or sets a value that indicates how a line box is determined for each line of text in the Block. (Inherited from Block) |
Margin |
Gets or sets the amount of space around a Block element. (Inherited from Block) |
Name |
Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML. (Inherited from TextElement) |
Text |
Gets or sets the horizontal alignment of the text content. (Inherited from Block) |
Text |
Gets or sets a value that indicates what decorations are applied to the text. (Inherited from TextElement) |
Text |
Gets or sets the indentation of the first line of text in a paragraph, in pixels. |
Text |
Identifies the TextIndent dependency property. |
Xaml |
Gets or sets the XamlRoot in which this element is being viewed. (Inherited from TextElement) |
Clear |
Clears the local value of a dependency property. (Inherited from DependencyObject) |
Find |
Retrieves an object in the object model / runtime object graph by referencing the object's x:Name or Name attribute value. (Inherited from TextElement) |
Get |
Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
Get |
Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject) |
On |
Override this method to implement how layout and logic should behave when items are removed from a class-specific content or child property. (Inherited from TextElement) |
Read |
Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
Register |
Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance. (Inherited from DependencyObject) |
Set |
Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
Unregister |
Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback. (Inherited from DependencyObject) |
Access |
Occurs when the access key sequence is complete to notify controls that they should hide access key visuals. (Inherited from TextElement) |
Access |
Occurs when the access key sequence is started to notify controls that they should show access key visuals. (Inherited from TextElement) |
Access |
Occurs when a user completes an access key sequence to notify the element that the access key action should be invoked. (Inherited from TextElement) |