Share via


InkWordNode.GetAscender Method

Returns the ascender line for an InkWordNode object.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Function GetAscender As PointCollection
'Usage
Dim instance As InkWordNode 
Dim returnValue As PointCollection 

returnValue = instance.GetAscender()
public PointCollection GetAscender()
public:
PointCollection^ GetAscender()
public function GetAscender() : PointCollection

Return Value

Type: System.Windows.Media.PointCollection
Returns the ascender line for an InkWordNode object.

Remarks

For Latin script, the ascender is the portion of a lowercase letter than extends above the main body (the midline) of that letter. For example, in the letter "b," the ascender is the vertical line that extends above the highest point of the circle. The ascender line is the imaginary horizontal line across the top of the ascenders.

Examples

The following example uses a Polyline to draw the ascender line for an InkWordNode, inkWord, on an InkCanvas, theInkCanvas.

Dim ascenderLine As New Polyline()

ascenderLine.Points = inkWord.GetAscender()
ascenderLine.Stroke = Brushes.Green

Me.theInkCanvas.Children.Add(ascenderLine)
Polyline ascenderLine = new Polyline();

ascenderLine.Points = inkWord.GetAscender();
ascenderLine.Stroke = Brushes.Green;

this.theInkCanvas.Children.Add(ascenderLine);

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkWordNode Class

InkWordNode Members

System.Windows.Ink Namespace

GetBaseline

GetDescender

GetMidline