Paragraph class
Provides a block-level content element that is used to group content into a paragraph.
Inheritance
- Object
- DependencyObject
- TextElement
- Block
- Paragraph
Syntax
<Paragraph .../> -or- <Paragraph ...> oneOrMoreInlines </Paragraph> -or- <Paragraph ...> mixedContent </Paragraph>
XAML Values
- oneOrMoreInlines
-
One or more elements that derive from the Inline type. Elements declared here become items in the Inlines collection.
- mixedContent
-
A mixture of inner text and elements that derive from the Inline type.
Attributes
- ActivatableAttribute(NTDDI_WIN8)
- ContentPropertyAttribute(Name=Inlines)
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.UI.Xaml.Documents.IParagraphStatics, NTDDI_WIN8)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
- WebHostHiddenAttribute()
Members
The Paragraph class has these types of members:
Constructors
The Paragraph class has these constructors.
| Constructor | Description |
|---|---|
| Paragraph | Initializes a new instance of the Paragraph class. |
Methods
The Paragraph class has these methods. It also inherits methods from the Object class.
| Method | Description |
|---|---|
| ClearValue | Clears the local value of a dependency property. (Inherited from DependencyObject) |
| FindName | Retrieves an object in the object model / runtime object graph by referencing the object's x:Name or Name attribute value. (Inherited from TextElement) |
| GetAnimationBaseValue | Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
| GetValue | Returns the current effective value of a dependency property from a DependencyObject. (Inherited from 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. (Inherited from TextElement) |
| ReadLocalValue | Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
| SetValue | Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
Properties
The Paragraph class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the uniform spacing between characters, in units of 1/1000 of an em. (Inherited from TextElement) | |
| Read-only | Gets a TextPointer that represents the end of the content in the element. (Inherited from TextElement) | |
| Read-only | Gets a TextPointer that represents the start of content in the element. (Inherited from TextElement) | |
| Read-only | Gets the CoreDispatcher that this object is associated with. (Inherited from DependencyObject) | |
| Read-only | Gets a TextPointer that represents the position just after the end of the element. (Inherited from TextElement) | |
| Read-only | Gets a TextPointer that represents the position just before the start of the element. (Inherited from TextElement) | |
| Read/write | Gets or sets the preferred top-level font family for the content of the element. (Inherited from TextElement) | |
| Read/write | Gets or sets the font size for the content of the element. (Inherited from TextElement) | |
| Read/write | Gets or sets the glyph width of the font in a family to select. (Inherited from TextElement) | |
| Read/write | Gets or sets the font style for the content in this element. (Inherited from TextElement) | |
| Read/write | Gets or sets the top-level font weight to select from the font family for the content in this element. (Inherited from TextElement) | |
| Read/write | Gets or sets the Brush to apply to the content in this element. (Inherited from TextElement) | |
| Read-only | Gets an InlineCollection containing the top-level Inline elements that include the contents of the Paragraph. | |
| Read/write | Gets or sets localization/globalization language information that applies to a TextElement. (Inherited from TextElement) | |
| Read/write | Gets or sets the height of each line of content. (Inherited from Block) | |
| Read/write | Gets or sets a value that indicates how a line box is determined for each line of text in the Block. (Inherited from Block) | |
| Read/write | Gets or sets the amount of space around a Block element. (Inherited from Block) | |
| Read-only | Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML. (Inherited from TextElement) | |
| Read/write | Gets or sets the horizontal alignment of the text content. (Inherited from Block) | |
| Read/write | Gets or sets the indentation of the first line of text in a paragraph, in pixels. | |
| Read-only | Identifies the TextIndent dependency property. |
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps only] |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
