Differences from the WebForms version:
Posted by very nice on 7:08 AM with No comments
The winforms Chart control is inherited from System.Windows.Forms.userControl and you have access to all events,properties and methods of UserControl in addition to the full .netCHARTING object model.
Width and Height properties are "int" type versus WebControl which are Unit type.
HitTest method. This method accepts the X,Y position on the chart image and returns the corresponding object for that point of the Image. These are 3 overloaded methods for HitTest method: [C#]
HitTestInfo myObj = HitTest(x,y);[Visual Basic]
HitTestInfo myObj = HitTest(x,y)x,y are int and represent the point you want to get the related object from. [C#]
HitTestInfo myObj = HitTest(myPoint);[Visual Basic]
HitTestInfo myObj = HitTest(myPoint)myPoint is "Point" type and represents the point you want to get the related object from.[C#]
HitTestInfo myObj = HitTest();[Visual Basic]
HitTestInfo myObj = HitTest()If you do not pass the cursor position, internally this method uses the position from the Chart control. This usage would be applicable when using the winforms control in a winforms project.Currently, the HitTestInfo Class has one property called "Object". It will hold the object clicked and can be used for drilldown or other advanced integration with the chart in a winforms environment.
When you use Object.URL properties, such as Element.URL when you click on the Element, a new browser window will be launched with the URL value specified. URL target has no effect in a winforms environment.
Width and Height properties are "int" type versus WebControl which are Unit type.
HitTest method. This method accepts the X,Y position on the chart image and returns the corresponding object for that point of the Image. These are 3 overloaded methods for HitTest method: [C#]
HitTestInfo myObj = HitTest(x,y);[Visual Basic]
HitTestInfo myObj = HitTest(x,y)x,y are int and represent the point you want to get the related object from. [C#]
HitTestInfo myObj = HitTest(myPoint);[Visual Basic]
HitTestInfo myObj = HitTest(myPoint)myPoint is "Point" type and represents the point you want to get the related object from.[C#]
HitTestInfo myObj = HitTest();[Visual Basic]
HitTestInfo myObj = HitTest()If you do not pass the cursor position, internally this method uses the position from the Chart control. This usage would be applicable when using the winforms control in a winforms project.Currently, the HitTestInfo Class has one property called "Object". It will hold the object clicked and can be used for drilldown or other advanced integration with the chart in a winforms environment.
When you use Object.URL properties, such as Element.URL when you click on the Element, a new browser window will be launched with the URL value specified. URL target has no effect in a winforms environment.
0 comments:
Post a Comment