Uredi

Deli z drugimi prek


WindowsFormsHost.FontFamily Property

Definition

Gets or sets the hosted control's font family.

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

Property Value

The font family used in the hosted control.

Remarks

This property setting affects only those controls whose template uses the property as a parameter. It has no effect on other controls.

This dependency property is identified by the FontFamilyProperty 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 FontFamily="fontFamily"/>

XAML Values

fontFamily See FontFamily for XAML Attribute syntax.

Dependency Property Information

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

Applies to

See also