InkCanvas.UseCustomCursor 属性

定义

获取或设置一个布尔值,该值指示是否重写标准的 InkCanvas 光标功能以支持自定义光标。

public:
 property bool UseCustomCursor { bool get(); void set(bool value); };
public bool UseCustomCursor { get; set; }
member this.UseCustomCursor : bool with get, set
Public Property UseCustomCursor As Boolean

属性值

Boolean

如果 InkCanvas 正在使用自定义光标,则为 true;否则为 false

示例

The following example demonstrates how to use a cursor that is different than the one supplied by the InkCanvas.

inkCanvas1.UseCustomCursor = true;
inkCanvas1.Cursor = Cursors.Pen;
inkCanvas1.UseCustomCursor = True
inkCanvas1.Cursor = Cursors.Pen

注解

InkCanvas 更改游标样式以反映当前 EditingMode ,而游标在光标的边界 InkCanvas内。 如果不需要此行为,例如,当使用自定义游标时 InkCanvas ,请将此属性设置为 true该属性,并且游标不会随此 EditingMode更改。

适用于