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.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public delegate Tuple<bool?, Color?, IComponentParameters> ComponentDrawOverride(
string reference,
string stepName,
Color col
)
Public Delegate Function ComponentDrawOverride (
reference As String,
stepName As String,
col As Color
) As Tuple(Of Boolean?, Color?, IComponentParameters)
public delegate Tuple<Nullable<bool>, Nullable<Color>, IComponentParameters^>^ ComponentDrawOverride(
String^ reference,
String^ stepName,
Color col
)
type ComponentDrawOverride =
delegate of
reference : string *
stepName : string *
col : Color -> Tuple<Nullable<bool>, Nullable<Color>, IComponentParameters>
- reference String
- Component reference designator (RefDes).
- stepName String
- Logical step name (panel / sub-step context).
- col Color
- Current (pre‑calculated) component color.
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.