View on GitHub

SARAFF SOFTWARE

All products / Saraff.Twain.DS / Contents

OnCapabilityChanged

Invoked when the capability value changed.

Syntax

protected virtual void OnCapabilityChanged(CapabilityEventArgs e)

Parameters

Examples

protected override void OnCapabilityChanged(CapabilityEventArgs e) {
    switch(e.Capability.CapabilityInfo.Capability) {
        case TwCap.IPixelType:
            this._ResetCap(TwCap.BitDepth);
            break;
    }
    base.OnCapabilityChanged(e);
}