Поделиться через


InkWordNode.GetAscender - метод

Обновлен: Ноябрь 2007

Returns the ascender line for an InkWordNode object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Function GetAscender As Point()
'Применение
Dim instance As InkWordNode
Dim returnValue As Point()

returnValue = instance.GetAscender()
public Point[] GetAscender()
public:
array<Point>^ GetAscender()
public Point[] GetAscender()
public function GetAscender() : Point[]

Возвращаемое значение

Тип: array<System.Drawing.Point[]
Returns the ascender line for an InkWordNode object.

Заметки

For Latin script, the ascender line is the portion of a lowercase letter than extends above the main body (the midline) of that letter. For example, in the letter "b," the ascender is the vertical line that extends above the highest point of the circle. The ascender line is the imaginary horizontal line across the top of the ascenders.

Примеры

The following example draws the ascender line for an InkWordNode, inkWord, by using a Renderer object, renderer, and a Graphics object, panelGraphics, which was created by a Panel.

Dim ascenderPoints As Point() = inkWord.GetAscender()
' Convert to pixel coordinates
theRenderer.InkSpaceToPixel(panelGraphics, ascenderPoints)
panelGraphics.DrawLines(New Pen(Color.Green), ascenderPoints)
                Point[] ascenderPoints = inkWord.GetAscender();
                // Convert to pixel coordinates
                theRenderer.InkSpaceToPixel(panelGraphics, ref ascenderPoints);
                panelGraphics.DrawLines(new Pen(Color.Green), ascenderPoints);

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkWordNode Класс

InkWordNode - члены

Microsoft.Ink - пространство имен

GetBaseline

GetDescender

GetMidline