Condividi tramite


TextFormattingRunProperties.SetItalic Method

Gets a new TextFormattingRunProperties with the properties of this one but with the Italic property set to the italic value.

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

Syntax

'Dichiarazione
Public Function SetItalic ( _
    isItalic As Boolean _
) As TextFormattingRunProperties
public TextFormattingRunProperties SetItalic(
    bool isItalic
)
public:
TextFormattingRunProperties^ SetItalic(
    bool isItalic
)
member SetItalic : 
        isItalic:bool -> TextFormattingRunProperties 
public function SetItalic(
    isItalic : boolean
) : TextFormattingRunProperties

Parameters

  • isItalic
    Type: System.Boolean
    true if text formatting is to be italic, 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