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 function GetBaseline() : Point[]
Return Value
Type: array<System.Drawing.Point[]
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.
Examples
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
theRenderer.InkSpaceToPixel(panelGraphics, basePoints)
panelGraphics.DrawLines(New Pen(Color.Purple), basePoints)
Point[] basePoints = inkWord.GetBaseline();
// Convert to pixel coordinates
theRenderer.InkSpaceToPixel(panelGraphics, ref basePoints);
panelGraphics.DrawLines(new Pen(Color.Purple), basePoints);
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