แก้ไข

แชร์ผ่าน


WindowsFormsHost.FontStyle Property

Definition

Gets or sets the hosted control's font style.

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

Property Value

The font style used in the hosted control.

Remarks

This dependency property is identified by the FontStyleProperty field. By default, this property is mapped to update the Control.Font property of the hosted control. For more information, see Windows Forms and WPF Property Mapping.

XAML Attribute Usage

<object FontStyle="fontStyle"/>

XAML Values

fontStyle See FontStyle for XAML Attribute syntax.

Dependency Property Information

Identifier field FontStyleProperty
Metadata properties set to true AffectsMeasure, AffectsRender, Inherits

Applies to

See also