InkPicture.DynamicRendering 属性

获取或设置一个值,该值指示墨迹 是否在绘制时呈现。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
<BrowsableAttribute(True)> _
Public Property DynamicRendering As Boolean
用法
Dim instance As InkPicture
Dim value As Boolean

value = instance.DynamicRendering

instance.DynamicRendering = value
[BrowsableAttribute(true)]
public bool DynamicRendering { get; set; }
[BrowsableAttribute(true)]
public:
property bool DynamicRendering {
    bool get ();
    void set (bool value);
}
/** @property */
/** @attribute BrowsableAttribute(true) */
public boolean get_DynamicRendering()
/** @property */
/** @attribute BrowsableAttribute(true) */
public  void set_DynamicRendering(boolean value)
public function get DynamicRendering () : boolean
public function set DynamicRendering (value : boolean)

属性值

类型:System.Boolean
如果墨迹在绘制时呈现并显示在显示设备上,则为 true。
如果墨迹不呈现并且不显示在显示设备上,则为 false。

示例

此 C# 示例为菜单项创建一个事件处理程序,用于在 InkPicture 控件 theInkPicture 的动态呈现的启用和禁用状态之间切换。

[C#]

using Microsoft.Ink;
  //. . .
  private void menuInkDynamicRendering_Click(
      object sender,
      System.EventArgs e)
  {
      theInkPicture.DynamicRendering = !theInkPicture.DynamicRendering;
      menuInkDynamicRendering.Checked = theInkPicture.DynamicRendering;
  }
  //. . .

此 Microsoft(R) Visual Basic(R) .NET 示例为菜单项创建一个事件处理程序,用于在 InkPicture 控件 theInkPicture 的动态呈现的启用和禁用状态之间切换。

[Visual Basic]

Imports Microsoft.Ink
  '. . .
  Private Sub MenuInkDynamicRendering_Click(ByVal sender As Object, _
  ByVal e As System.EventArgs)
      theInkPicture.DynamicRendering = Not theInkPicture.DynamicRendering
      menuInkDynamicRendering.Checked = theInkPicture.DynamicRendering
  End Sub
  '. . .

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

InkPicture 类

InkPicture 成员

Microsoft.Ink 命名空间

Ink

InkOverlay.AutoRedraw