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
'Declaration
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: Booleantrue if text formatting is to be bold, otherwise false.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.TextFormattingRunProperties
A TextFormattingRunProperties.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.