次の方法で共有


IgnorePressure Property

IgnorePressure Property

Gets or sets the value that specifies whether drawn ink automatically gets wider with increased pressure of the pen tip on the tablet surface.

Declaration

[C++]

[propput] HRESULT put_IgnorePressure ([in] VARIANT_BOOL IgnorePressure);
[propget] HRESULT get_IgnorePressure ([out, retval] VARIANT_BOOL*
    IgnorePressure);

[Microsoft® Visual Basic® 6.0]

Public Property Get IgnorePressure() As Boolean
Public Property Let IgnorePressure(ByVal isIgnorePressure As Boolean)

Property Value

VARIANT_BOOL Returns or sets the Boolean value that specifies whether drawn ink automatically gets wider with increased pressure of the pen tip on the tablet surface.

This property is read/write.

TRUE Pressure from the pen tip is ignored and the width of the ink remains the same regardless of the pressure of the pen on the tablet surface.
FALSE Default. The width of the ink gets wider with increased pressure of the pen on the tablet surface.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER Parameter pointer was invalid.
E_INK_EXCEPTION An exception occurred inside the method.
E_INVALIDARG The specified mode is invalid.

Remarks

The greater the pressure on the pen tip, the more ink that is drawn. Set this property to TRUE if you do not want this effect to occur.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example shows a menu handler to toggle the IgnorePressure property.

   Dim theInkCollector As InkCollector
'...
    Private Sub MenuInkIgnorePressure_Click()
        MenuInkIgnorePressure.Checked = Not MenuInkIgnorePressure.Checked
        theInkCollector.DefaultDrawingAttributes.IgnorePressure = _
            MenuInkIgnorePressure.Checked
        Refresh
    End Sub

Applies To