Block.SetIsHyphenationEnabled(DependencyObject, Boolean) 方法

定义

设置指定的依赖对象上的 IsHyphenationEnabled 附加属性值。Sets the value of the IsHyphenationEnabled attached property on a specified dependency object.

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

参数

element
DependencyObject

要设置其 IsHyphenationEnabled 属性的值的依赖项对象。The dependency object on which to set the value of the IsHyphenationEnabled property.

value
Boolean

要为属性设置的新值。The new value to set the property to.

异常

elementnullelement is null.

适用于

另请参阅