Partager via


TextFormattingParagraphProperties Constructor (TextFormattingRunProperties)

Initializes a new instance of TextFormattingParagraphProperties.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Déclaration
Public Sub New ( _
    defaultTextRunProperties As TextFormattingRunProperties _
)
public TextFormattingParagraphProperties(
    TextFormattingRunProperties defaultTextRunProperties
)
public:
TextFormattingParagraphProperties(
    TextFormattingRunProperties^ defaultTextRunProperties
)
new : 
        defaultTextRunProperties:TextFormattingRunProperties -> TextFormattingParagraphProperties
public function TextFormattingParagraphProperties(
    defaultTextRunProperties : TextFormattingRunProperties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

defaultTextRunProperties is nulla null reference (Nothing in Visual Basic).

Remarks

This sets the tab size to 4 * the FontRenderingEmSize of defaultTextRunProperties.

.NET Framework Security

See Also

Reference

TextFormattingParagraphProperties Class

TextFormattingParagraphProperties Overload

Microsoft.VisualStudio.Text.Formatting Namespace