Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2345-standardlibrary-chart-object-classes-obj-controls-cchartobjectbitmap-cchartobjectbitmapx-offset.md
T

34 lines
891 B
Markdown
Raw Normal View History

2026-06-23 21:47:51 +08:00
# X_Offset (Get Method)
Gets the value of "X_Offset" property (the upper left corner) of the [CChartObjectBitmap](/en/docs/standardlibrary/chart_object_classes/obj_controls/cchartobjectbitmap) graphical object.
```
int  X_Offset() const
```
Return Value
Value of "X_Offset" property of the object assigned to the class instance. If there is no object assigned, it returns 0.
# X_Offset (Set Method)
Sets new value for "X_Offset" property (the upper left corner) of the [CChartObjectBitmap](/en/docs/standardlibrary/chart_object_classes/obj_controls/cchartobjectbitmap) graphical object. The value is set in pixels relative to the upper left corner of the original image.
```
bool  X_Offset(
   int  X      // property value
   )
```
Parameters
X
[in]  New value for "X_Offset" property.
Return Value
true - successful, false - cannot change the property.