User Guide > How to Work with... > ART Annotations > Using ImageGear.ART Namespace > Creating, Saving, Loading, Modifying, and Deleting ART Marks > Creating a Mark via the ToolBar |
End users can create a mark using the ART toolbar, or your application can create them directly by calling ART functions. This section describes how to create marks with user interaction through the ART toolbar.
When a button is selected from the toolbar, ART goes into "edit mode", where the mouse is used to place and size the mark. The sequence of events depends on whether the mark is one of the types that contains text or not:
Mark does not contain text:
Mark contains text:
During the creation of polymarks, such as Polyline, Polyline Ruler or Polygon, two options can be enabled (both are disabled by default):
Note that ART ToolBar event handlers are implemented in the ART Forms open source code and can be modified at any time and in any way, but in order for them to work, your application needs to interact with the following events:
C# |
Copy Code |
---|---|
private void imGearPageView_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { igARTForms.MouseDown(sender, e); } private void imGearPageView_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { igARTForms.MouseMove(sender, e); } private void imGearPageView_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { igARTForms.MouseUp(sender, e); } |