public Boolean IsCustom()
Remarks
This method returns true if the Axis is a Custom Axis.
Example
[C#]
Steema.TeeChart.Axis myAxis = new Steema.TeeChart.Axis();
private void Form1_Load(object sender, System.EventArgs e)
{
line1.FillSampleValues(10);
line2.FillSampleValues(10);
tab
myAxis.Horizontal = false;
myAxis.RelativePosition = 10;
line2.CustomVertAxis = myAxis;
tChart1.Axes.Custom.Add (myAxis);
}
}
private void button1_Click(object sender, System.EventArgs e)
{
//..
if (myAxis.IsCustom())
{
myAxis.AxisPen.Color= Color.Red;
tChart1.Refresh();
}
}
}
[VB.NET]
Dim myAxis As New Steema.TeeChart.Axis
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Line1.FillSampleValues(10)
Line2.FillSampleValues(10)
myAxis.Horizontal = False
myAxis.RelativePosition = 10
Line2.CustomVertAxis = myAxis
TChart1.Axes.Custom.Add(myAxis)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
tab
If (myAxis.IsCustom()) Then
myAxis.AxisPen.Color = Color.Red
TChart1.Refresh()
End If
End Sub
See Also
Axis Class | Axis Members | Steema.TeeChart Namespace