Zum Hauptinhalt springen
Dieses Objekt macht die Eigenschaften eines Schriftstils verfügbar.

Eigenschaften

,read-only

Returns theobject.

Sets the RGB value of the color for the font.

The value of this property can be -1, which means that the color is transparent.

Der int-Wert wird aus dem RGB-Triplett mithilfe der folgenden Formel berechnet: ( Rotwert ) + (256 × Grünwert ) + (65536 × Blauwert ), wobei der Rotwert die erste, der Grünwert die zweite und der Blauwert die dritte Triplettkomponente ist. Der int-Wert der Farbe Weiß beträgt beispielsweise 16777215.

By default, the font color is black, and the property returns 0.

Specifies whether the font is bold.

Specifies whether the font is italic.

Specifies whether the font is underlined.

Specifies whether the font is strikeout.

Specifies whether the font has “small caps” style. This means that the small characters are displayed as small capitals.

, read-only

Stores the name of the font. This property cannot be changed directly but via the SetFont method.

By default, this value is “Times New Roman”.

Specifies the height of the font in twips. Twip is 1/20 of point, and point is 1/72”.

Default value of this property corresponds to 10 points or 200 twips.

, read-only

Stores the type of the font. This property cannot be changed directly but via the SetFont method.

By default, this value is FT_Unknown.

Legt die Verschiebung eines Zeichens von der Grundlinie der Zeichenkette in Pixeln fest. Die Grundlinie der Zeichenkette wird durch die Eigenschaftdefiniert. Diese Eigenschaft wird hauptsächlich für in Text eingebettete Bilder verwendet.

Speichert die horizontale Skalierung des Schriftstils in 1/1000.

Der Standardwert dieser Eigenschaft ist 1000, was einer Skalierung von 100 % entspricht (keine Skalierung).

Gibt den zusätzlichen Zeichenabstand in Twips an. Ein Twip entspricht 1/20 eines Punktes, und ein Punkt entspricht 1/72”.

Der Standardwert dieser Eigenschaft beträgt 0.

, nur lesbar

Gibt an, ob dieser Schriftstil der Basisschriftstil des Absatzstils ist.

, nur lesbar

Beschreibt die Stilparameter, die in diesem Stil gegenüber dem Basisschriftstil des Absatzes überschrieben wurden. Die Eigenschaft ist eine ODER-Verknüpfung der-Konstanten.

Methoden

NameBeschreibung
SetFontLegt den neuen Schriftartnamen und den Schrifttyp fest.
FontStyle Objektdiagramm

Siehe auch

ParagraphStyle Arbeiten mit Eigenschaften