ImageView.SetTag
----------------

Sets the tag string for this image view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageView](component_ImageView.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "ImageView.SetTag"; ImageView; Tag ) 

**MBS**( **"ImageView.SetTag";** /\* Sets the tag string for this image view. \*/  
**$ImageView**; /\* The image view reference number.e.g. $$ImageView \*/   
**$Tag**) /\* A string you want to associate with the image view. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageView | The image view reference number. | $$ImageView |
| Tag | A string you want to associate with the image view. |  |

### Result

Returns OK or error message.

### Description

Sets the tag string for this image view.  
Use the tag to store whatever value you want to associate with the image view. You can later query it using [ImageView.GetTag](ImageViewGetTag.md).  
### See also

- [ImageView.GetTag](ImageViewGetTag.md)
- [ImageView.GetTop](ImageViewGetTop.md)
- [ImageView.SetFrame](ImageViewSetFrame.md)
- [ImageView.SetImage](ImageViewSetImage.md)
- [MapView.SetTag](MapViewSetTag.md)

This function is free to use.

Created 14th September 2017 , last changed 14th September 2017

  
[ImageView.SetImage](ImageViewSetImage.md) - [ImageView.SetToolTip](ImageViewSetToolTip.md)

[HTML Version](ImageViewSetTag.shtml)