InkWordNode.GetDescender Method
Returns the descender line for an InkWordNode object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in microsoft.ink.analysis.dll)
Syntax
'Declaration
Public Function GetDescender As Point()
'Usage
Dim instance As InkWordNode
Dim returnValue As Point()
returnValue = instance.GetDescender
public Point[] GetDescender ()
public:
array<Point>^ GetDescender ()
public Point[] GetDescender ()
public function GetDescender () : Point[]
Not applicable.
Return Value
Returns the descender line for an InkWordNode object.
Remarks
For western languages, the descender is the portion of a lowercase letter that falls below the baseline, such as the vertical line of the letter "p" that extends below the lowest point of the circle in that letter. The descender line is the imaginary horizontal line that runs along the bottom of the descenders.
Example
The following example draws the descender line for an InkWordNode, inkWord
, by using a Renderer object, theRenderer
, and a Graphics object, panelGraphics
, which was created by a Panel.
Dim descenderPoints As Point() = inkWord.GetDescender()
' Convert to pixel coordinates
Dim indexDescender As Integer
For indexDescender = 0 To descenderPoints.Length - 1
theRenderer.InkSpaceToPixel(panelGraphics, descenderPoints(indexDescender))
Next indexDescender
panelGraphics.DrawLines(New Pen(Color.Yellow), descenderPoints)
Point[] descenderPoints = inkWord.GetDescender();
// Convert to pixel coordinates
for (int i = 0; i < descenderPoints.Length; i++)
{
theRenderer.InkSpaceToPixel(panelGraphics, ref descenderPoints[i]);
}
panelGraphics.DrawLines(new Pen(Color.Yellow), descenderPoints);
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
GetBaseline
GetMidline