Method SetSvgImage
SetSvgImage(SvgImage?, int?, Color?)
Sets the SVG image, along with optional size and color, for the associated primitive.
public virtual void SetSvgImage(SvgImage? svg, int? size = null, Color? color = null)
Parameters
svgSvgImageThe SvgImage to be applied. Can be null to clear the current SVG image.
sizeint?The optional size of the SVG image. If null, the default size is used.
colorColorThe optional color to apply to the SVG image. If null, the default color is used.
Remarks
This method updates the SVG image and its associated properties for the primitive. If the image visibility is enabled, the layout is recalculated and the display is invalidated.