ImageGear .NET v25.0 - Updated
MarkGet Method
Example 




ImageGear.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class : MarkGet Method
Mark's ID.
Gets a mark by its ID.
Syntax
'Declaration
 
Public Function MarkGet( _
   ByVal markId As Integer _
) As ImGearARTMark
'Usage
 
Dim instance As ImGearARTPage
Dim markId As Integer
Dim value As ImGearARTMark
 
value = instance.MarkGet(markId)
public ImGearARTMark MarkGet( 
   int markId
)
public: ImGearARTMark* MarkGet( 
   int markId
) 
public:
ImGearARTMark^ MarkGet( 
   int markId
) 

Parameters

markId
Mark's ID.

Return Value

ImGearARTMark class object.
Example
// Array to hold a list of marks.
ArrayList igARTMarkList = new ArrayList();
// Add all valid marks with id's between 0 to 999 to an array.
for (int i = 0; i < 1000; ++i )
{
    if (igARTPage.MarkIsValid(i))
        igARTMarkList.Add(igARTPage.MarkGet(i));
}
// Cut the marks from the page to the clipboard.
igARTPage.CutMarks(igARTMarkList);
// Create a new art page and paste the marks into it.
ImGearARTPage igARTPageNew = new ImGearARTPage();
igARTPageNew.PasteMarks();
// Change the displayed marks to the new art page.
igPageView.Display.ARTPage = igARTPageNew;
igPageView.Invalidate();
' Array to hold a list of marks.
Dim igARTMarkList As New ArrayList()
For i As Integer = 0 To 999
    ' Add all valid marks with id's between 0 to 999 to an array.
    If igARTPage.MarkIsValid(i) Then
        igARTMarkList.Add(igARTPage.MarkGet(i))
    End If
Next
' Cut the marks from the page to the clipboard.
igARTPage.CutMarks(igARTMarkList)
' Create a new art page and paste the marks into it.
Dim igARTPageNew As New ImGearARTPage()
igARTPageNew.PasteMarks()
' Change the displayed marks to the new art page.
igPageView.Display.ARTPage = igARTPageNew
igPageView.Invalidate()
See Also

Reference

ImGearARTPage Class
ImGearARTPage Members
ImGearARTMark Class