InkWordNode.GetBaseline Method
Returns the baseline line for an InkWordNode object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public Function GetBaseline As Point()
'Usage
Dim instance As InkWordNode
Dim returnValue As Point()
returnValue = instance.GetBaseline
public Point[] GetBaseline ()
public:
array<Point>^ GetBaseline ()
public Point[] GetBaseline ()
public function GetBaseline () : Point[]
Not applicable.
Return Value
Returns the baseline line for an InkWordNode object.
Remarks
The baseline is the imaginary horizontal line with which the base of each character (excluding descenders) is aligned.
Example
The following example draws the baseline for an InkWordNode, inkWord
, by using a Renderer object, theRenderer
, and a Graphics object, panelGraphics
, which was created by a Panel.
Dim basePoints As Point() = inkWord.GetBaseline()
' Convert to pixel coordinates
Dim indexBase As Integer
For indexBase = 0 To basePoints.Length - 1
theRenderer.InkSpaceToPixel(panelGraphics, basePoints(indexBase))
Next indexBase
panelGraphics.DrawLines(New Pen(Color.Purple), basePoints)
Point[] basePoints = inkWord.GetBaseline();
// Convert to pixel coordinates
for (int i = 0; i < basePoints.Length; i++)
{
theRenderer.InkSpaceToPixel(panelGraphics, ref basePoints[i]);
}
panelGraphics.DrawLines(new Pen(Color.Purple), basePoints);
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
GetAscender
GetDescender
GetMidline