PropertyTranslator 委托
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为宿主控件的映射属性提供转换功能。
public delegate void PropertyTranslator(System::Object ^ host, System::String ^ propertyName, System::Object ^ value);
C#
public delegate void PropertyTranslator(object host, string propertyName, object value);
type PropertyTranslator = delegate of obj * string * obj -> unit
Public Delegate Sub PropertyTranslator(host As Object, propertyName As String, value As Object)
- host
- Object
正在映射其属性的宿主控件。 宿主控件为 WindowsFormsHost 或 ElementHost。
- propertyName
- String
要转换的属性的名称。
- value
- Object
属性的新值。
PropertyTranslator类使用PropertyMap委托实现 Windows 窗体 与 WPF 之间的属性映射。 有关详细信息,请参阅 Windows 窗体和 WPF 属性映射。
Get |
获取指示指定委托表示的方法的对象。 |
产品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |