Paragraph Paragraph Paragraph Class

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

Syntax

Declaration

public sealed class Paragraphpublic sealed class ParagraphPublic NotInheritable Class Paragraph
<Paragraph .../>
-or-
<Paragraph ...>
  oneOrMoreInlines
</Paragraph>
-or-
<Paragraph ...>
  mixedContent
</Paragraph>

Inheritance Hierarchy

Inherited Members

Inherited properties

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited events

, ,

Inherited methods

, , , , , , , ,

Constructors summary

Initializes a new instance of the Paragraph class.

Properties summary

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

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

Identifies the TextIndent dependency property.

Constructors

  • Paragraph()
    Paragraph()
    Paragraph()
    Paragraph()

    Initializes a new instance of the Paragraph class.

    public Paragraph()public New()Public Sub New()public 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 InlineCollectionpublic InlineCollection Inlines { get; }
    <Paragraph .../>
    -or-
    <Paragraph ...>
      oneOrMoreInlines
    </Paragraph>
    -or-
    <Paragraph ...>
      mixedContent
    </Paragraph>
    

    Property Value

  • 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 doublepublic double TextIndent { get; set; }
    <Paragraph TextIndent="double"/>
    

    Property Value

    • 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 TextIndent property. You can override this setting for specific paragraphs in a RichTextBlock by setting the 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 DependencyPropertypublic static DependencyProperty TextIndentProperty { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.UI.Xaml.Markup.ContentPropertyAttribute

Details

Assembly

Windows.UI.Xaml.Documents.dll