StrokeCollectionConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

 

Converts the specified object to a StrokeCollection.

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

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ context,
	CultureInfo^ culture,
	Object^ value
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization::CultureInfo^

The CultureInfo to use as the current culture.

value
Type: System::Object^

The Object to convert.

Return Value

Type: System::Object^

A StrokeCollection converted from value.

The ConvertFrom method returns null if value is not a String.

The following example demonstrates how to convert a base-64, encoded Ink Serialized Format (ISF) string to a StrokeCollection. This assumes that there is an InkPresenter called presenter.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: