PictureBox

Wisej.Web.PictureBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents an image control.

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

Constructors

PictureBox()

Initializes a new instance of the PictureBox class.

PictureBox(image, sizeMode)

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

Name
Type
Description

image

The Image object to display in the picture box.

sizeMode

The size mode for the picture box, optional and defaults to PictureBoxSizeMode.Normal.

PictureBox(imageSource, sizeMode)

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

Name
Type
Description

imageSource

The source path of the image to display in the picture box.

sizeMode

The size mode for the picture box, optional and defaults to PictureBoxSizeMode.Normal.

PictureBox(location, size)

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

Name
Type
Description

location

The location of the TextBox on its parent control.

size

The size of the TextBox.

PictureBox(image, location, size, sizeMode)

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

Name
Type
Description

image

The Image object to display in the picture box.

location

The location of the TextBox on its parent control.

size

The size of the TextBox.

sizeMode

The size mode for the picture box, optional and defaults to Normal.

PictureBox(imageSource, location, size, sizeMode)

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

Name
Type
Description

imageSource

The source path of the image to display in the picture box.

location

The location of the TextBox on its parent control.

size

The size of the TextBox.

sizeMode

The size mode for the picture box, optional and defaults to Normal.

Properties

BorderStyle

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

Command

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

DefaultSize

Size:

DialogResult

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

Filter

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

Image

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

ImageSource

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

SizeMode

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

Methods

Dispose(disposing)

Disposes the control.

Parameter
Type
Description

disposing

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

Load(url)

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

Parameter
Type
Description

url

The path for the image to display in the PictureBox.

LoadAsync(url)

Loads the image at the specified location, asynchronously.

Parameter
Type
Description

url

The path for the image to display in the PictureBox.

OnClick(e)

Fires the Click event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnCommandChanged(e)

Fires the CommandChanged event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnLoadCompleted(e)

Fires the LoadCompleted event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnSizeModeChanged(e)

Fires the SizeModeChanged event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

PerformClick()

Generates a Click event for the LinkLabel control.

Events

CommandChanged

EventHandler Fired when the Command property value changes.

LoadCompleted

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

SizeModeChanged

EventHandler Fired when SizeMode changes.

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Allows a control to act like a button on a Form.

Defines an object that can invoke a Command.

Controls that support drag & drop operations implement this interface.

Provides access to common image properties across the controls that implement this interface.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?