RectValueSerializer.CanConvertToString(Object, IValueSerializerContext) 方法

定义

确定指定的 Rect 是否可以转换为 StringDetermines whether the specified Rect can be converted to a String.

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

参数

value
Object

要进行计算以供转换的对象。The object to evaluate for conversion.

context
IValueSerializerContext

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

返回

Boolean

如果可将 value 转换为 String,则为 true;否则为 falsetrue if value can be converted into a String; otherwise, false.

适用于