Skip to main content
Version: 4.1

PictureBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents an image control.

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

Constructors

Instance member PictureBox()

Initializes a new instance of the PictureBox class.

Instance member PictureBox(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 member PictureBox(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 member PictureBox(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 member PictureBox(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 member PictureBox(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 member BorderStyle

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

Instance member Command

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

Protected member DefaultSize

Size:

Instance member DialogResult

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

Instance member Filter

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

Instance member Image

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

Instance member ImageSource

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

Instance member SizeMode

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

Methods

Protected member Dispose(disposing)

Disposes the control.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Instance member Load(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 member LoadAsync(url)

Loads the image at the specified location, asynchronously.

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

Protected member OnClick(e)

Fires the Click event.

ParameterTypeDescription
eEventArgsAn EventArgs that contains the event data.

Protected member OnCommandChanged(e)

Fires the CommandChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnLoadCompleted(e)

Fires the LoadCompleted event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnSizeModeChanged(e)

Fires the SizeModeChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Instance member PerformClick()

Generates a Click event for the LinkLabel control.

Events

Instance member CommandChanged

EventHandler Fired when the Command property value changes.

Instance member LoadCompleted

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

Instance member SizeModeChanged

EventHandler Fired when SizeMode changes.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
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.