Method SetImage
SetImage(KnownButtonImage)
Sets the image and alignment properties for a button based on the specified configuration.
public virtual void SetImage(KnownButtonImage knownButtonAndImage)
Parameters
knownButtonAndImageKnownButtonImageAn 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.