Skip to main content
Version: 3.5

PictureBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents an image control.

public class PictureBox : Control, ISupportInitialize, IButtonControl, IImage, ICommandSource

Constructors

Instance memberPictureBox()

Initializes a new instance of the PictureBox class.

Instance memberPictureBox(image, sizeMode)

Initializes a new instance of the PictureBox class with specified settings.

NameTypeDescription
imageImageThe Image object to display in the picture box.
sizeModePictureBoxSizeModeThe size mode for the picture box, optional and defaults to PictureBoxSizeMode.Normal.

Instance memberPictureBox(imageSource, sizeMode)

Initializes a new instance of the PictureBox class with specified settings.

NameTypeDescription
imageSourceStringThe source path of the image to display in the picture box.
sizeModePictureBoxSizeModeThe size mode for the picture box, optional and defaults to PictureBoxSizeMode.Normal.

Instance memberPictureBox(location, size)

Initializes a new instance of the PictureBox class with specified settings.

NameTypeDescription
locationPointThe location of the TextBox on its parent control.
sizeSizeThe size of the TextBox.

Instance memberPictureBox(image, location, size, sizeMode)

Initializes a new instance of the PictureBox class with specified settings.

NameTypeDescription
imageImageThe Image object to display in the picture box.
locationPointThe location of the TextBox on its parent control.
sizeSizeThe size of the TextBox.
sizeModePictureBoxSizeModeThe size mode for the picture box, optional and defaults to Normal.

Instance memberPictureBox(imageSource, location, size, sizeMode)

Initializes a new instance of the PictureBox class with specified settings.

NameTypeDescription
imageSourceStringThe source path of the image to display in the picture box.
locationPointThe location of the TextBox on its parent control.
sizeSizeThe size of the TextBox.
sizeModePictureBoxSizeModeThe size mode for the picture box, optional and defaults to Normal.

Properties

Instance memberBorderStyle

BorderStyle: Indicates the border style for the control. (Default: None)

Instance memberCommand

ICommand: Returns or sets the ICommand implementation to invoke. (Default: null)

Instance memberDialogResult

DialogResult: Returns or sets a value that is returned to the parent form when the button is clicked. (Default: None)

Instance memberFilter

String: Returns or sets the filter (filter) to apply to the picture. (Default: null)

Instance memberImage

Image: Returns or sets the image that is displayed by PictureBox.

Instance memberImageSource

String: Returns or sets the theme name or URL for the image to display in the PictureBox.

Instance memberSizeMode

PictureBoxSizeMode: Indicates how the image is displayed. (Default: Normal)

Methods

Instance memberLoad(url)

Sets the ImageSource to the specified URL and displays the image indicated.

ParameterTypeDescription
urlStringThe path for the image to display in the PictureBox.

Instance memberLoadAsync(url)

Loads the image at the specified location, asynchronously.

ParameterTypeDescription
urlStringThe path for the image to display in the PictureBox.

Instance memberPerformClick()

Generates a Click event for the LinkLabel control.

Events

Instance memberCommandChanged

EventHandler Fired when the Command property value changes.

Instance memberLoadCompleted

EventHandler Fired when the asynchronous image-load operation is completed.

Instance memberSizeModeChanged

EventHandler Fired when SizeMode changes.

Implements

NameDescription
IBindableComponentBindable components implement this interface.
IButtonControlAllows a control to act like a button on a Form.
ICommandSourceDefines an object that can invoke a Command.
IDropTargetControls that support drag & drop operations implement this interface.
IImageProvides access to common image properties across the controls that implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.