I have tried all examples of these Methods from the "Help" documentation for NT8 for OnCalculateMinMax() And CalculateMinMax() and none of these Method examples will compile. Is there a problem here?
----------------------------------------------------------------------------------------------------------------
public override void OnCalculateMinMax()
{
//It is important to set MinValue and MaxValue to the min/max Y values
//in order for your object to support auto scale
MinValue=Anchor.YDataValue;
MaxValue=Anchor.YDataValue;
}
-------------------------------------------------------------------------------------------------------
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
IsAutoScale = true; // set this to true to call CalculateMinMix() to ensure drawing tool is fully rendered in chart scale
}
}
public override void CalculateMinMax()
{
// It is important to set MinValue and MaxValue to the min/max Y values your drawing tool uses if you want it to support auto scale
foreach (ChartAnchor anchor in Anchors)
{
MinValue = Math.Min(anchor.YDataValue, MinValue);
MaxValue = Math.Max(anchor.YDataValue, MaxValue);
}
}
---------------------------------------------------------------------------------------------------------
public override void OnCalculateMinMax()
{
//It is important to set MinValue and MaxValue to the min/max Y values
//in order for your object to support auto scale
MinValue=Anchor.YDataValue;
MaxValue=Anchor.YDataValue;
}
.
Comment