Språk

TextPatternIdentifiers.FontWeightAttribute Fält

Definition

Identifierar attributet för FontWeight ett textintervall.

public: static initonly System::Windows::Automation::AutomationTextAttribute ^ FontWeightAttribute;
public static readonly System.Windows.Automation.AutomationTextAttribute FontWeightAttribute;
 staticval mutable FontWeightAttribute : System.Windows.Automation.AutomationTextAttribute
Public Shared ReadOnly FontWeightAttribute As AutomationTextAttribute 

Fältvärde

Kommentarer

Refererar till ett teckensnitts relativa linje, tjocklek eller fetstil.

Detta modelleras efter fältet lfWeight i GDI LOGFONT. För konsekvens har följande värden antagits från LOGFONT: 0=DontCare, 100=Thin, 200=ExtraLight eller UltraLight, 300=Light, 400=Normal eller Regular, 500=Medium, 600=SemiBold eller DemiBold, 700=Bold, 800=ExtraBold eller UltraBold och 900=Heavy eller Black.

Den här identifieraren används av UI Automation providrar. UI Automation klientprogram bör använda motsvarande fält i TextPattern.

Värden för det här attributet är av typen Int32.

Standardvärdet är zero.

Gäller för

Se även