Export (0) Print
Expand All

StrokeCollectionConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts a StrokeCollection to a string.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

public override Object ConvertTo (
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)
public Object ConvertTo (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value, 
	Type destinationType
)
public override function ConvertTo (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object, 
	destinationType : Type
) : Object
You cannot use methods in XAML.

Parameters

context

An ITypeDescriptorContext that provides a format context.

culture

The CultureInfo to use as the current culture.

value

The Object to convert.

destinationType

The Type to convert to.

Return Value

An object that represents the specified StrokeCollection.

Exception typeCondition

ArgumentNullException

destinationType is a null reference (Nothing in Visual Basic).

The ConvertTo method returns a null reference (Nothing in Visual Basic) if value is not a StrokeCollection, or if destinationType is not String or InstanceDescriptor.

The ConvertTo method returns a base-64, encoded Ink Serialized Format (ISF). It is useful to store ink data as base-64, encoded ISF when it is not possible to store raw byte data, such as in Web pages.

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.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft