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 function GetAscender() : Point[]
Return Value
Type: array<System.Drawing.Point[]
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.
Examples
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
theRenderer.InkSpaceToPixel(panelGraphics, ascenderPoints)
panelGraphics.DrawLines(New Pen(Color.Green), ascenderPoints)
Point[] ascenderPoints = inkWord.GetAscender();
// Convert to pixel coordinates
theRenderer.InkSpaceToPixel(panelGraphics, ref ascenderPoints);
panelGraphics.DrawLines(new Pen(Color.Green), ascenderPoints);
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
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