Share via


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 function GetMidline() : PointCollection

Return Value

Type: System.Windows.Media.PointCollection
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.

Examples

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 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

See Also

Reference

InkWordNode Class

InkWordNode Members

System.Windows.Ink Namespace

GetAscender

GetBaseline

GetDescender