InkWordNode.GetMidline Method
Returns the midline for an InkWordNode object.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
Syntax
'Declaration
Public Function GetMidline As PointCollection
'Usage
Dim instance As InkWordNode
Dim returnValue As PointCollection
returnValue = instance.GetMidline
public PointCollection GetMidline ()
public:
PointCollection^ GetMidline ()
public PointCollection GetMidline ()
public function GetMidline () : PointCollection
Not applicable.
Return Value
Returns the midline for an InkWordNode object.
Remarks
The midline is an imaginary horizontal line with which the top of the main body of each character (excluding ascenders) is aligned. For example, for the printed word "rat," the tops of the "r" and the "a" align with the midline.
Example
The following example uses a Polyline to draw the midline for an InkWordNode, inkWord
, on an InkCanvas, theInkCanvas
.
Dim midline As New Polyline()
midline.Points = inkWord.GetMidline()
midline.Stroke = Brushes.Brown
theInkCanvas.Children.Add(midline)
Polyline midline = new Polyline();
midline.Points = inkWord.GetMidline();
midline.Stroke = Brushes.Brown;
theInkCanvas.Children.Add(midline);
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
System.Windows.Ink Namespace
GetAscender
GetBaseline
GetDescender