# ObjectSetZoom Event

> Occurs when the zoom factor of an object inserted through its hWnd property is to be changed, passing the new zoom factor and a Processed flag.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ObjectSetZoom Event
- **217 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsetzoom-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsetzoom-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsetzoom-event/llms-full.txt

---

Occurs when an object's zoom factor is to be changed. This event is sent only for objects that have been inserted via its hWnd property.

### Syntax

```vbscript
ObjectSetZoom(ObjectId, ZoomFactor, Processed)
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectId | Is the identifier of the object, the zoom factor of which is to be changed. |
| ZoomFactor | Is the object's new zoom factor. |
| Processed | If the event is being processed this parameter should be set to True. |

### Data Types

| Name | Data type |
|---|---|
| ObjectId | Integer |
| ZoomFactor | Integer |
| Processed | Boolean |

### See Also

- [ObjectGetZoom Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectgetzoom-event/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ObjectSetData Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsetdata-event/llms-full.txt)
- **Next:** [ObjectSized Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectsized-event/llms-full.txt)
