IPCBIWindowComponentDrawOverride Delegate

Delegate to override component drawing for a single component during rendering. Return a tuple where each element may be null to indicate "no override" for that aspect.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public delegate Tuple<bool?, Color?, IComponentParameters> ComponentDrawOverride(
	string reference,
	string stepName,
	Color col
)

Parameters

reference  String
Component reference designator (RefDes).
stepName  String
Logical step name (panel / sub-step context).
col  Color
Current (pre‑calculated) component color.

Return Value

TupleNullableBoolean, NullableColor, IComponentParameters
Tuple(bool? drawFlag, Color? overrideColor, IComponentParameters overrideParameters): drawFlag: true = force draw, false = suppress drawing, null = keep default. overrideColor: set a new color or null to keep default. overrideParameters: supply modified component parameters or null to keep existing ones. Return null (instead of a tuple with all elements null) if nothing is overridden.

See Also