Table of Contents

Method IsInputSet

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll

IsInputSet(int)

Allows you to check if an input is set (non-null) without allocating a ref to it.

public bool IsInputSet(int index)

Parameters

index int

Returns

bool

Remarks

GetInput(), like all methods returning IObjectRef "refs", must provide a new "ref" for reference counting purposes. Using this method allows you to avoid that allocation.
This method returns false if the index is out of range.