IInkPresenterStencil Interface
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.
Represents a visual stencil, displayed as an semi-transparent overlay on an InkCanvas.
The stencil transforms how an ink stroke is rendered:
- It snaps the ink stroke to the stencil edge if the pen tip is within a distance threshold (gutter).
- It acts as a mask and prevents the drawing of an ink stroke within the area obscured by the stencil.
The stencil can be manipulated both programmatically and by the user. It also scales and translates with the InkCanvas.
public interface class IInkPresenterStencil
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.Guid(819015021, 15878, 19714, 177, 22, 39, 127, 181, 216, 173, 220)]
struct IInkPresenterStencil
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.Guid(819015021, 15878, 19714, 177, 22, 39, 127, 181, 216, 173, 220)]
public interface IInkPresenterStencil
Public Interface IInkPresenterStencil
- Derived
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Properties
BackgroundColor |
Gets or sets the background color of the IInkPresenterStencil object. |
ForegroundColor |
Gets or sets the color of the foreground elements on an IInkPresenterStencil object. |
IsVisible |
Gets or sets whether the IInkPresenterStencil object is visible. |
Kind |
Gets the type of IInkPresenterStencil object to display on the InkCanvas. |
Transform |
Gets or sets the position and rotation angle of the IInkPresenterStencil object within the 2-D coordinate space of the InkCanvas. Both position and rotation are based on the top left corner of the stencil relative to the origin of the InkCanvas. |
Applies to
See also
- Windows.UI.Input.Inking Interfaces
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample