Table of Contents

Method SetImage

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

SetImage(KnownButtonImage)

Sets the image and alignment properties for a button based on the specified configuration.

public virtual void SetImage(KnownButtonImage knownButtonAndImage)

Parameters

knownButtonAndImage KnownButtonImage

An object containing the image, button, alignment, and size configuration to apply.

Remarks

This method updates the horizontal and vertical alignment of the image if alignment values are provided in the knownButtonAndImage parameter. It then sets the SVG image, button type, and size using the specified configuration.