Table of Contents

Method SetSvgImage

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

svg SvgImage

The SvgImage to be applied. Can be null to clear the current SVG image.

size int?

The optional size of the SVG image. If null, the default size is used.

color Color

The 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.