Compartir a través de


TextFormattingRunProperties.SetBold Method

Returns a new TextFormattingRunProperties with the properties of this one but with the Bold property set the specified bold value.

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

Syntax

'Declaración
Public Function SetBold ( _
    isBold As Boolean _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetBold(
    bool isBold
)
public:
TextFormattingRunProperties^ SetBold(
    bool isBold
)
member SetBold : 
        isBold:bool -> TextFormattingRunProperties 
public function SetBold(
    isBold : boolean
) : TextFormattingRunProperties

Parameters

  • isBold
    Type: System.Boolean
    true if text formatting is to be bold, otherwise false.

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties.

.NET Framework Security

See Also

Reference

TextFormattingRunProperties Class

Microsoft.VisualStudio.Text.Formatting Namespace