Paragraph Paragraph Paragraph Paragraph Class

Definition

Provides a block-level content element that is used to group content into a paragraph.

public : sealed class Paragraph : Block, IParagraph
public sealed class Paragraph : Block, IParagraph
Public NotInheritable Class Paragraph Inherits Block Implements IParagraph
var paragraph = new paragraph();
<Paragraph .../>
-or-
<Paragraph ...>
  oneOrMoreInlines
</Paragraph>
-or-
<Paragraph ...>
  mixedContent
</Paragraph>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

Paragraph() Paragraph() Paragraph() Paragraph()

Initializes a new instance of the Paragraph class.

public : Paragraph()
public Paragraph()
Public Sub New()
var paragraph = new paragraph();

Properties

Inlines Inlines Inlines Inlines

Gets an InlineCollection containing the top-level Inline elements that include the contents of the Paragraph.

public : InlineCollection Inlines { get; }
public InlineCollection Inlines { get; }
Public ReadOnly Property Inlines As InlineCollection
var inlineCollection = paragraph.inlines;
<Paragraph .../>
-or-
<Paragraph ...>
  oneOrMoreInlines
</Paragraph>
-or-
<Paragraph ...>
  mixedContent
</Paragraph>
Value
InlineCollection InlineCollection InlineCollection InlineCollection

An InlineCollection containing the Inline elements that include the contents of the Paragraph.

TextIndent TextIndent TextIndent TextIndent

Gets or sets the indentation of the first line of text in a paragraph, in pixels.

public : double TextIndent { get; set; }
public double TextIndent { get; set; }
Public ReadWrite Property TextIndent As double
var double = paragraph.textIndent;
paragraph.textIndent = double;
<Paragraph TextIndent="double"/>
Value
double double double double

The offset amount, in pixels, of the first line of text in a paragraph.

Remarks

You can set the indent amount for all paragraphs in a RichTextBlock by setting the RichTextBlock.TextIndent property. You can override this setting for specific paragraphs in a RichTextBlock by setting the Paragraph.TextIndent property to a different value.

TextIndentProperty TextIndentProperty TextIndentProperty TextIndentProperty

Identifies the TextIndent dependency property.

public : static DependencyProperty TextIndentProperty { get; }
public static DependencyProperty TextIndentProperty { get; }
Public Static ReadOnly Property TextIndentProperty As DependencyProperty
var dependencyProperty = Windows.UI.Xaml.Documents.Paragraph.textIndentProperty;
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the TextIndent dependency property.

AccessKey AccessKey AccessKey AccessKey

Inherited from TextElement

AccessKeyProperty AccessKeyProperty AccessKeyProperty AccessKeyProperty

Inherited from TextElement

AccessKeyScopeOwner AccessKeyScopeOwner AccessKeyScopeOwner AccessKeyScopeOwner

Inherited from TextElement

AccessKeyScopeOwnerProperty AccessKeyScopeOwnerProperty AccessKeyScopeOwnerProperty AccessKeyScopeOwnerProperty

Inherited from TextElement

AllowFocusOnInteraction AllowFocusOnInteraction AllowFocusOnInteraction AllowFocusOnInteraction

Inherited from TextElement

AllowFocusOnInteractionProperty AllowFocusOnInteractionProperty AllowFocusOnInteractionProperty AllowFocusOnInteractionProperty

Inherited from TextElement

CharacterSpacing CharacterSpacing CharacterSpacing CharacterSpacing

Inherited from TextElement

CharacterSpacingProperty CharacterSpacingProperty CharacterSpacingProperty CharacterSpacingProperty

Inherited from TextElement

ContentEnd ContentEnd ContentEnd ContentEnd

Inherited from TextElement

ContentStart ContentStart ContentStart ContentStart

Inherited from TextElement

Dispatcher Dispatcher Dispatcher Dispatcher

Inherited from DependencyObject

ElementEnd ElementEnd ElementEnd ElementEnd

Inherited from TextElement

ElementStart ElementStart ElementStart ElementStart

Inherited from TextElement

ExitDisplayModeOnAccessKeyInvoked ExitDisplayModeOnAccessKeyInvoked ExitDisplayModeOnAccessKeyInvoked ExitDisplayModeOnAccessKeyInvoked

Inherited from TextElement

ExitDisplayModeOnAccessKeyInvokedProperty ExitDisplayModeOnAccessKeyInvokedProperty ExitDisplayModeOnAccessKeyInvokedProperty ExitDisplayModeOnAccessKeyInvokedProperty

Inherited from TextElement

FontFamily FontFamily FontFamily FontFamily

Inherited from TextElement

FontFamilyProperty FontFamilyProperty FontFamilyProperty FontFamilyProperty

Inherited from TextElement

FontSize FontSize FontSize FontSize

Inherited from TextElement

FontSizeProperty FontSizeProperty FontSizeProperty FontSizeProperty

Inherited from TextElement

FontStretch FontStretch FontStretch FontStretch

Inherited from TextElement

FontStretchProperty FontStretchProperty FontStretchProperty FontStretchProperty

Inherited from TextElement

FontStyle FontStyle FontStyle FontStyle

Inherited from TextElement

FontStyleProperty FontStyleProperty FontStyleProperty FontStyleProperty

Inherited from TextElement

FontWeight FontWeight FontWeight FontWeight

Inherited from TextElement

FontWeightProperty FontWeightProperty FontWeightProperty FontWeightProperty

Inherited from TextElement

Foreground Foreground Foreground Foreground

Inherited from TextElement

ForegroundProperty ForegroundProperty ForegroundProperty ForegroundProperty

Inherited from TextElement

HorizontalTextAlignment HorizontalTextAlignment HorizontalTextAlignment HorizontalTextAlignment

Inherited from Block

HorizontalTextAlignmentProperty HorizontalTextAlignmentProperty HorizontalTextAlignmentProperty HorizontalTextAlignmentProperty

Inherited from Block

IsAccessKeyScope IsAccessKeyScope IsAccessKeyScope IsAccessKeyScope

Inherited from TextElement

IsAccessKeyScopeProperty IsAccessKeyScopeProperty IsAccessKeyScopeProperty IsAccessKeyScopeProperty

Inherited from TextElement

IsTextScaleFactorEnabled IsTextScaleFactorEnabled IsTextScaleFactorEnabled IsTextScaleFactorEnabled

Inherited from TextElement

IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty IsTextScaleFactorEnabledProperty

Inherited from TextElement

KeyTipHorizontalOffset KeyTipHorizontalOffset KeyTipHorizontalOffset KeyTipHorizontalOffset

Inherited from TextElement

KeyTipHorizontalOffsetProperty KeyTipHorizontalOffsetProperty KeyTipHorizontalOffsetProperty KeyTipHorizontalOffsetProperty

Inherited from TextElement

KeyTipPlacementMode KeyTipPlacementMode KeyTipPlacementMode KeyTipPlacementMode

Inherited from TextElement

KeyTipPlacementModeProperty KeyTipPlacementModeProperty KeyTipPlacementModeProperty KeyTipPlacementModeProperty

Inherited from TextElement

KeyTipVerticalOffset KeyTipVerticalOffset KeyTipVerticalOffset KeyTipVerticalOffset

Inherited from TextElement

KeyTipVerticalOffsetProperty KeyTipVerticalOffsetProperty KeyTipVerticalOffsetProperty KeyTipVerticalOffsetProperty

Inherited from TextElement

Language Language Language Language

Inherited from TextElement

LanguageProperty LanguageProperty LanguageProperty LanguageProperty

Inherited from TextElement

LineHeight LineHeight LineHeight LineHeight

Inherited from Block

LineHeightProperty LineHeightProperty LineHeightProperty LineHeightProperty

Inherited from Block

LineStackingStrategy LineStackingStrategy LineStackingStrategy LineStackingStrategy

Inherited from Block

LineStackingStrategyProperty LineStackingStrategyProperty LineStackingStrategyProperty LineStackingStrategyProperty

Inherited from Block

Margin Margin Margin Margin

Inherited from Block

MarginProperty MarginProperty MarginProperty MarginProperty

Inherited from Block

Name Name Name Name

Inherited from TextElement

TextAlignment TextAlignment TextAlignment TextAlignment

Inherited from Block

TextAlignmentProperty TextAlignmentProperty TextAlignmentProperty TextAlignmentProperty

Inherited from Block

TextDecorations TextDecorations TextDecorations TextDecorations

Inherited from TextElement

TextDecorationsProperty TextDecorationsProperty TextDecorationsProperty TextDecorationsProperty

Inherited from TextElement

Events

AccessKeyDisplayDismissed AccessKeyDisplayDismissed AccessKeyDisplayDismissed AccessKeyDisplayDismissed

Inherited from TextElement

AccessKeyDisplayRequested AccessKeyDisplayRequested AccessKeyDisplayRequested AccessKeyDisplayRequested

Inherited from TextElement

AccessKeyInvoked AccessKeyInvoked AccessKeyInvoked AccessKeyInvoked

Inherited from TextElement

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Inherited from DependencyObject

FindName(String) FindName(String) FindName(String) FindName(String)

Inherited from TextElement

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Inherited from DependencyObject

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Inherited from DependencyObject

OnDisconnectVisualChildren OnDisconnectVisualChildren OnDisconnectVisualChildren OnDisconnectVisualChildren

Inherited from TextElement

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Inherited from DependencyObject

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Inherited from DependencyObject

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Inherited from DependencyObject

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Inherited from DependencyObject

See Also