Share via


InkWordNode.GetAscender Method

Returns the ascender line for an InkWordNode object.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)

Syntax

'Declaration
Public Function GetAscender As Point()
'Usage
Dim instance As InkWordNode
Dim returnValue As Point()

returnValue = instance.GetAscender
public Point[] GetAscender ()
public:
array<Point>^ GetAscender ()
public Point[] GetAscender ()
public function GetAscender () : Point[]
Not applicable.

Return Value

Returns the ascender line for an InkWordNode object.

Remarks

For Latin script, the ascender line 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.

Example

The following example draws the ascender line for an InkWordNode, inkWord, by using a Renderer object, renderer, and a Graphics object, panelGraphics, which was created by a Panel.

Dim ascenderPoints As Point() = inkWord.GetAscender()

' Convert to pixel coordinates
Dim indexAscender As Integer
For indexAscender = 0 To ascenderPoints.Length - 1
    theRenderer.InkSpaceToPixel(panelGraphics, ascenderPoints(indexAscender))
Next indexAscender
panelGraphics.DrawLines(New Pen(Color.Green), ascenderPoints)
Point[] ascenderPoints = inkWord.GetAscender();
// Convert to pixel coordinates
for (int i = 0; i < ascenderPoints.Length; i++)
{
    theRenderer.InkSpaceToPixel(panelGraphics, ref ascenderPoints[i]);
}
panelGraphics.DrawLines(new Pen(Color.Green), ascenderPoints);

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

InkWordNode Class
InkWordNode Members
Microsoft.Ink Namespace
GetBaseline
GetDescender
GetMidline