TextFormattingRunProperties::SetTypeface Method (Typeface^)

 

Gets a new TextFormattingRunProperties with the properties of this one but with the typeface set to the specified typeface.

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

public:
TextFormattingRunProperties^ SetTypeface(
	Typeface^ typeface
)

Parameters

typeface
Type: System.Windows.Media::Typeface^

The new typeface.

Exception Condition
ArgumentNullException

typeface is null.

If you wish to only make the formatting either italic or bold, instead of setting a typeface, please use the SetBold and SetItalic methods.

Return to top
Show: