Share via


DivisionUnit.ToString Method

Returns the recognized text for the Strokes collection in the DivisionUnit object.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As DivisionUnit 
Dim returnValue As String 

returnValue = instance.ToString()
public override string ToString()
public:
virtual String^ ToString() override
public override function ToString() : String

Return Value

Type: System.String
Returns the recognized text for the Strokes collection in the DivisionUnit object, or nulla null reference (Nothing in Visual Basic) (Nothing in Microsoft® Visual Basic® .NET) for drawing elements.

Remarks

This method and the RecognitionString property return the same string.

Examples

This C# example displays the recognition text for the DivisionUnit object, theDivisionUnit, to the console. The ToString method is called by the console's System.Console.WriteLine method.

Console.WriteLine("The text for the division unit is: " + theDivisionUnit);

This Visual Basic .NET example displays the recognition text for the DivisionUnit object, theDivisionUnit, to the console. The ToString method is called by the console's System.Console.WriteLine method.

Console.WriteLine("The text for the division unit is: " & theDivisionUnit)

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

See Also

Reference

DivisionUnit Class

DivisionUnit Members

Microsoft.Ink Namespace

DivisionUnit.RecognitionString