[]
Represents a Windows PictureBox control supporting data binding to data source fields containing image data.
[ToolboxBitmap(typeof(C1PictureBox), "C1PictureBox.png")]
public class C1PictureBox : PictureBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor
Name | Description |
---|---|
C1PictureBox() | Initializes a new instance of the C1PictureBox class. |
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. |
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. |
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. |