Export (0) Print
Expand All

GlyphTypeface.TopSideBearings Property

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.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public IDictionary<ushort, double> TopSideBearings { get; }

Property Value

Type: System.Collections.Generic.IDictionary<UInt16, Double>
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.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft