共用方式為


TextOptions.SetTextFormattingMode 方法

定義

設定所指定項目的 TextFormattingMode

public:
 static void SetTextFormattingMode(System::Windows::DependencyObject ^ element, System::Windows::Media::TextFormattingMode value);
public static void SetTextFormattingMode (System.Windows.DependencyObject element, System.Windows.Media.TextFormattingMode value);
static member SetTextFormattingMode : System.Windows.DependencyObject * System.Windows.Media.TextFormattingMode -> unit
Public Shared Sub SetTextFormattingMode (element As DependencyObject, value As TextFormattingMode)

參數

element
DependencyObject

要為其設定 TextFormattingMode 的項目。

value
TextFormattingMode

要在 element 上設定的 TextFormattingMode

例外狀況

elementnull

適用於

另請參閱