XY Chart NET 3 Control Reference > Properties > Scale Class - ScaleWidthHeight Property |
For Y scales, use this property to set/get the scale's width. For X scales, use this property to set/get the scale's height. A value of zero enables the scale width/height to be calculated automatically. Units are in Pixels.
ScaleWidthHeight is a property of the Scale Class.
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1.NumProfiles = 2 XYChartNETCtl1.NumXScales = 1 XYChartNETCtl1.NumYScales = 1 'Set X-scale height to 35 pixels; set Y-scale width to 27 pixels XYChartNETCtl1.XAxis(0).Scale.ScaleWidthHeight = 35 XYChartNETCtl1.YAxis(0).Scale.ScaleWidthHeight = 27 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1.NumProfiles = 2; XYChartNETCtl1.NumXScales = 1; XYChartNETCtl1.NumYScales = 1; //Set X-scale height to 35 pixels; set Y-scale width to 27 pixels XYChartNETCtl1.get_XAxis(0).Scale.ScaleWidthHeight = 35; XYChartNETCtl1.get_YAxis(0).Scale.ScaleWidthHeight = 27; XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1->NumProfiles = 2; XYChartNETCtl1->NumXScales = 1; XYChartNETCtl1->NumYScales = 1; //Set X-scale height to 35 pixels; set Y-scale width to 27 pixels XYChartNETCtl1->get_XAxis(0).Scale->ScaleWidthHeight = 35; XYChartNETCtl1->get_YAxis(0).Scale->ScaleWidthHeight = 27; XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1.NumProfiles = 2 XYChartNETCtl1.NumXScales = 1 XYChartNETCtl1.NumYScales = 1 'Set X-scale height to 67 pixels; set Y-scale width to 100 pixels XYChartNETCtl1.XAxis(0).Scale.ScaleWidthHeight = 67 XYChartNETCtl1.YAxis(0).Scale.ScaleWidthHeight = 100 XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1.NumProfiles = 2; XYChartNETCtl1.NumXScales = 1; XYChartNETCtl1.NumYScales = 1; //Set X-scale height to 67 pixels; set Y-scale width to 100 pixels XYChartNETCtl1.get_XAxis(0).Scale.ScaleWidthHeight = 67; XYChartNETCtl1.get_YAxis(0).Scale.ScaleWidthHeight = 100; XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. XYChartNETCtl1->NumProfiles = 2; XYChartNETCtl1->NumXScales = 1; XYChartNETCtl1->NumYScales = 1; //Set X-scale height to 67 pixels; set Y-scale width to 100 pixels XYChartNETCtl1->get_XAxis(0).Scale->ScaleWidthHeight = 67; XYChartNETCtl1->get_YAxis(0).Scale->ScaleWidthHeight = 100; XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made