Paragraph Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da Paragraph classe.
Sobrecargas
| Name | Description |
|---|---|
| Paragraph() |
Inicializa uma nova instância vazia da Paragraph classe. |
| Paragraph(Inline) |
Inicializa uma nova instância da Paragraph classe, tomando um objeto especificado Inline como conteúdo inicial. |
Paragraph()
Inicializa uma nova instância vazia da Paragraph classe.
public:
Paragraph();
public Paragraph();
Public Sub New ()
Aplica-se a
Paragraph(Inline)
public:
Paragraph(System::Windows::Documents::Inline ^ inline);
public Paragraph(System.Windows.Documents.Inline inline);
new System.Windows.Documents.Paragraph : System.Windows.Documents.Inline -> System.Windows.Documents.Paragraph
Public Sub New (inline As Inline)
Parâmetros
Exemplos
O exemplo seguinte demonstra a utilização deste construtor.
// A child Inline element for the new Paragraph element.
Run runx = new Run("Text to be hosted in the new paragraph...");
// After this line executes, the new element "parx"
// contains the specified Inline element, "runx".
Paragraph parx = new Paragraph(runx);
' A child Inline element for the new Paragraph element.
Dim runx As New Run("Text to be hosted in the new paragraph...")
' After this line executes, the new element "parx"
' contains the specified Inline element, "runx".
Dim parx As New Paragraph(runx)