RectValueSerializer.ConvertFromString(String, IValueSerializerContext) 方法

定义

String 转换为 RectConverts a String into a Rect.

public:
 override System::Object ^ ConvertFromString(System::String ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public override object ConvertFromString (string value, System.Windows.Markup.IValueSerializerContext context);
override this.ConvertFromString : string * System.Windows.Markup.IValueSerializerContext -> obj
Public Overrides Function ConvertFromString (value As String, context As IValueSerializerContext) As Object

参数

value
String

要转换的字符串。The string to convert.

context
IValueSerializerContext

用于转换的上下文信息。Context information that is used for conversion.

返回

Object

基于所提供的 valueRect 新实例。A new instance of Rect based on the supplied value.

注解

实现使用 Rect.Parse 内部。The implementation uses Rect.Parse internally.

适用于