Leadtools.Mrc Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MrcEnumerateSegmentsInfo Delegate
See Also 
Leadtools.Mrc Namespace : MrcEnumerateSegmentsInfo Delegate



segmentHandle
An Instance of MrcSegmenter class.
data
An Instance of MrcSegmentData that you can use to access a variable or structure containing data that your delegate method needs. This gives you a way to receive data indirectly from the method that uses this delegate method.
id
ID of the segment being enumerated.
Handles each enumerated segment. This delegate is passed as a parameter to the EnumerateSegments method.

Syntax

Visual Basic (Declaration) 
Public Delegate Function MrcEnumerateSegmentsInfo( _
   ByVal segmentHandle As IntPtr, _
   ByVal data As MrcSegmentData, _
   ByVal id As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As New MrcEnumerateSegmentsInfo(AddressOf HandlerMethod)
C# 
public delegate bool MrcEnumerateSegmentsInfo( 
   IntPtr segmentHandle,
   MrcSegmentData data,
   int id
)
C++/CLI 
public delegate bool MrcEnumerateSegmentsInfo( 
   IntPtr segmentHandle,
   MrcSegmentData data,
   int id
)

Parameters

segmentHandle
An Instance of MrcSegmenter class.
data
An Instance of MrcSegmentData that you can use to access a variable or structure containing data that your delegate method needs. This gives you a way to receive data indirectly from the method that uses this delegate method.
id
ID of the segment being enumerated.

Example

Refer to MrcSegmenter example.

Remarks

This delegate method is called for each segment enumerated by the EnumerateSegments method. The delegate receives segment data, segment ID and any other associated user data for each segment.
This delegate can be used when performing automatic or manual segmentation.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Mrc requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features