Hi Swetaketu
Thank you for contacting Syncfusion Support.
In XPToolBar, BarItem type of controls are used as its Child controls and its size will be calculated based on the defined font. At present, there is no direct option to achieve this requirement. We have prepared a workaround to retrieve BarItem width approximately. Please find the code example for the same:
Code Example:
//code used to measure the font width of XPToolBar
(TextRenderer.MeasureText(this.barItem3.Text + " ", this.xpToolBar1.Font).Width.ToString());
|
Screenshot:
Regards,
Vijayalakshmi V.R.