InkCanvas.UseCustomCursor Property
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
true
if the InkCanvas is using a custom cursor; otherwise, 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
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.
Produkt | Versioner |
---|---|
.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 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: