[]
        
(Showing Draft Content)

C1.Win.C1Input.C1PictureBox

C1PictureBox Class

Represents a Windows PictureBox control supporting data binding to data source fields containing image data.

Namespace: C1.Win.C1Input
Assembly: C1.Win.C1Input.4.8.dll
Syntax
[ToolboxBitmap(typeof(C1PictureBox), "C1PictureBox.png")]
public class C1PictureBox : PictureBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor

Constructors

Name Description
C1PictureBox()

Initializes a new instance of the C1PictureBox class.

Properties

Name Description
DataField

The field of the data source object to which the control is bound.

DataSource

The data source object to which the control is bound.

FocusOnClick

Gets or sets the value indicating whether the picture box receives focus when clicked.

Image

The image displayed in the control.

ImmediateUpdate

Gets or sets whether the image should be put into the data source right after the Image property has been changed or it shouldn't be put there until the following call of the CurrencyManager.EndCurrentEdit() method.

Methods

Name Description
CopyImage()

Copies the image currently in the control to the clipboard.

Dispose(bool)

Releases the resources used by the C1PictureBox.

ImageFromByteArray(byte[])

Converts a byte array to an image.

ImageToByteArray(Image, ImageFormat)

Returns the contents of an image.

OnBindingFormatting(ConvertEventArgs)

This method is for internal use only.

OnBindingParsing(ConvertEventArgs)

This method is for internal use only.

OnGotFocus(EventArgs)

This method is for internal use only.

OnImageChanged(EventArgs)

This method is for internal use only.

OnLostFocus(EventArgs)

This method is for internal use only.

OnMouseDown(MouseEventArgs)

This method is for internal use only.

PasteImage()

If the clipboard contains an image, this method replaces the contents of the Image property of the control

WndProc(ref Message)

This method is for internal use only.

Events

Name Description
BindingFormatting

Occurs when Image is retrieved from the data source.

BindingParsing

Occurs when Image is stored in the data source.

ImageChanged

Occurs when the Image changes.