Method RequireArgb
RequireArgb()
Ensures that the color ARGB value is valid.
protected void RequireArgb()
Remarks
This method validates or enforces that the associated color value adheres to the ARGB format. It is intended to be used internally to maintain consistency in color representation. This method is called before any operations where ARGB values are accessed.
RequireArgb(ref ColorStruct)
This method is called each time before argb value of the color is returned to the caller.
protected virtual void RequireArgb(ref ColorStruct val)
Parameters
valColorStructThis output parameter must be set if argb of the color is changed.
Remarks
You can override this method in order to provide alternative mechanism for loading and preparing argb values of the color.