AccessText.TextEffects 属性

定义

获取或设置添加到元素文本 AccessText 的效果。

public:
 property System::Windows::Media::TextEffectCollection ^ TextEffects { System::Windows::Media::TextEffectCollection ^ get(); void set(System::Windows::Media::TextEffectCollection ^ value); };
public System.Windows.Media.TextEffectCollection TextEffects { get; set; }
member this.TextEffects : System.Windows.Media.TextEffectCollection with get, set
Public Property TextEffects As TextEffectCollection

属性值

TextEffectCollection 默认值为 null

注解

此属性通常不是通过使用标记或代码设置的。

此属性公开访问键的默认效果,以便进行可能的样式设置或编程更改。

由于用户期望访问密钥标识符在用户界面(UI)中具有特定外观,因此更好的选择是使用应用程序范围的机制(如应用程序样式或自定义主题)更改此属性。

XAML 属性元素用法

<object>
  <object.TextEffects>
    OneOrMoreTextEffects
  </object.TextEffects>
</object>

XAML 值

OneOrMoreTextEffects
一个或多个 TextEffect 元素。

Dependency 属性信息

项目 价值
标识符字段 TextEffectsProperty
元数据属性设置为 true AffectsRender

适用于

另请参阅