Share via


InkDrawingAttributes.IgnorePressure Property

Definition

Gets or sets a value that indicates whether the pressure of the contact on the digitizer surface is ignored when you draw an InkStroke.

public:
 property bool IgnorePressure { bool get(); void set(bool value); };
bool IgnorePressure();

void IgnorePressure(bool value);
public bool IgnorePressure { get; set; }
var boolean = inkDrawingAttributes.ignorePressure;
inkDrawingAttributes.ignorePressure = boolean;
Public Property IgnorePressure As Boolean

Property Value

Boolean

bool

true if pressure is ignored; otherwise false. The default value is false.

Examples

The following example demonstrates how to set the IgnorePressure attribute for all strokes managed by this InkManager object (inkManager) that are created after the SetDefaultDrawingAttributes method call.

var inkManager = new Windows.UI.Input.Inking.InkManager();
var drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes();
drawingAttributes.ignorePressure = true;
inkManager.setDefaultDrawingAttributes(drawingAttributes);

Remarks

If IgnorePressure is set to false, the user can modify the thickness of a stroke by adjusting the amount of pressure applied to the digitizer surface while writing.

The following actions may be affected by the IgnorePressure setting.

IgnorePressureTrueFalse
CopyNo effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.No effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.
PasteDepending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be ignored during rendering.Depending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be applied during rendering.
SaveNo effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.No effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream
LoadDepending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be ignored during rendering.Depending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be applied during rendering.

Applies to

See also