Table of Contents

Method AddPicture

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

AddPicture(SvgImage?, string?)

Adds PictureBox to the control.

public virtual ObjectUniqueId AddPicture(SvgImage? image = null, string? toolTip = null)

Parameters

image SvgImage

Svg image.

toolTip string

Item tooltip.

Returns

ObjectUniqueId

ObjectUniqueId of the added item.

AddPicture(TemplateControl, bool, string?)

Adds PictureBox to the control with contents created from the the specified template.

public virtual ObjectUniqueId AddPicture(TemplateControl template, bool needDisabled = false, string? toolTip = null)

Parameters

template TemplateControl

Template which is used to get picture pixels.

needDisabled bool

Whether to get pixels for disabled state of the template.

toolTip string

Item tooltip.

Returns

ObjectUniqueId

AddPicture(ImageSet?, ImageSet?, string?, bool)

Adds PictureBox to the control.

public virtual ObjectUniqueId AddPicture(ImageSet? image = null, ImageSet? imageDisabled = null, string? toolTip = null, bool ignoreSuggestedSize = false)

Parameters

image ImageSet

Normal image.

imageDisabled ImageSet

Disable image.

toolTip string

Item tooltip.

ignoreSuggestedSize bool

Whether to ignore suggested size of the item's control.

Returns

ObjectUniqueId

ObjectUniqueId of the added item.