InkCanvas.UseCustomCursor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a Boolean value that indicates whether to override standard InkCanvas cursor functionality to support a custom cursor.
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
Property Value
true
if the InkCanvas is using a custom cursor; otherwise, false
.
Examples
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
Remarks
The InkCanvas will change the cursor style to reflect the current EditingMode while the cursor is within the bounds of the InkCanvas. If this behavior is not wanted, for example, when the InkCanvas uses a custom cursor, set this property to true
, and the cursor will not change with the EditingMode.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應