> For the complete documentation index, see [llms.txt](https://docs.gapvelocity.ai/webmap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gapvelocity.ai/webmap/general/frontend/documentation/winforms-angular-components/web-components/kendoui-components/picturebox.md).

# PictureBox

Adds supports for \[System.Windows.Forms.PictureBox]\(<https://msdn.microsoft.com/en-us/library/system.windows.forms.label(v=vs.110).aspx>)

## Implementation  Details

> **Component Selector:** 'wm-picturebox'

## Class inheritance

PictureBoxComponent extends [ControlComponent](/webmap/general/frontend/documentation/winforms-angular-components/web-components/base-components/control-component.md).

## PME Support

### Properties

| Property         | Get/Set | Notify Changes | Details                                                                                                                                                                        |
| ---------------- | ------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| source           | Yes     | No             | Sets and gets value of the image resource.                                                                                                                                     |
| text: string     | Yes     | Yes            | Inherited from ControlComponent [see ControlComponent](/webmap/general/frontend/documentation/winforms-angular-components/web-components/base-components/control-component.md) |
| name: string     | Yes     | No             | Inherited from ControlComponent [see ControlComponent](/webmap/general/frontend/documentation/winforms-angular-components/web-components/base-components/control-component.md) |
| enabled: boolean | Yes     | No             | Inherited from ControlComponent [see ControlComponent](/webmap/general/frontend/documentation/winforms-angular-components/web-components/base-components/control-component.md) |
| visible: boolean | Yes     | No             | Inherited from ControlComponent [see ControlComponent](/webmap/general/frontend/documentation/winforms-angular-components/web-components/base-components/control-component.md) |
| sizeMode: number | Yes     | No             | Gets or sets the value of the sizeMode.                                                                                                                                        |

### Methods

| Method                 | Supported | Details                                                 |
| ---------------------- | --------- | ------------------------------------------------------- |
| sizes: any             | Yes       | Returns the value for the property PicktureBoxSizeMode. |
| isValidSource: boolean | Yes       | Returns if the source property is a valid resource url. |

### Events

| Event    | Supported | Parameter         | Details                                                                                                                       |
| -------- | --------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| click    | Yes       | **$event**: any   | Trigger Click Event. ***$event*** parameter is optional and the ***$event***  object vary depending on the type of DOM event. |
| dragDrop | Yes       | **$event**: any } | Trigger event after an element is dropped inside the control.                                                                 |
