Modifier

Partager via


GlyphTypeface.TopSideBearings Property

Definition

Gets the distance from the top end of the vertical advance vector to the top edge of the black box for the glyphs represented by the GlyphTypeface object.

public:
 property System::Collections::Generic::IDictionary<System::UInt16, double> ^ TopSideBearings { System::Collections::Generic::IDictionary<System::UInt16, double> ^ get(); };
public System.Collections.Generic.IDictionary<ushort,double> TopSideBearings { get; }
member this.TopSideBearings : System.Collections.Generic.IDictionary<uint16, double>
Public ReadOnly Property TopSideBearings As IDictionary(Of UShort, Double)

Property Value

An IDictionary<TKey,TValue> object that contains key/value pairs that represent distance information. The key is a UInt16 that identifies the glyph index. The value is a Double that represents the distance.

Remarks

The TopSideBearings value is positive when the top edge of the black box is within the alignment rectangle defined by the advance height and font cell height. The font cell height is a horizontal dimension in vertical layout.

The TopSideBearings value is negative when the top edge of the black box overhangs the alignment rectangle.

Applies to

See also