共用方式為


TextOptions.SetTextRenderingMode(DependencyObject, TextRenderingMode) 方法

定義

設定所指定項目的 TextRenderingMode

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

參數

element
DependencyObject

要為其設定 TextRenderingMode 的項目。

value
TextRenderingMode

要在 element 上設定的 TextRenderingMode

例外狀況

elementnull

適用於

另請參閱