Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GroupEditObjectPen Property
See Also  Example
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : GroupEditObjectPen Property





Gets or sets the object outline Pen used when drawing selected objects in a group for all AnnEditDesigner derived classes.

Syntax

Visual Basic (Declaration) 
Public Property GroupEditObjectPen As Pen
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Pen
 
instance.GroupEditObjectPen = value
 
value = instance.GroupEditObjectPen
C# 
public Pen GroupEditObjectPen {get; set;}
C++/CLI 
public:
property Pen GroupEditObjectPen {
   Pen get();
   void set (Pen value);
}
XAML Syntax 
For XAML information, see the System.Windows.Media.Pen type.
XAML Property Element Usage 

<object> <object.GroupEditObjectPen> <Pen .../> </object.GroupEditObjectPen> </object>

XAML Syntax 
For XAML information, see the System.Windows.Media.Pen type.
XAML Property Element Usage 

<object> <object.GroupEditObjectPen> <Pen .../> </object.GroupEditObjectPen> </object>

Return Value

The object outline Pen used when drawing selected objects in a group for all AnnEditDesigner derived classes.

Example

This example changes some properties of the group outline used with the AnnGroupEditDesigner including the following:

  • the Outline forecolor to white
  • the Outline backcolor to black
  • the Pen used to outline selected objects to purple

Visual BasicCopy Code
Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager)
  Dim back As Pen = manager.GroupEditFrameBackPen
  Dim fore As Pen = manager.GroupEditFrameForePen
  manager.GroupEditFrameBackPen = New Pen(Brushes.Black, 3)
  manager.GroupEditFrameForePen = New Pen(Brushes.White, 3)
  manager.GroupEditFrameForePen.DashStyle = DashStyles.Dot
  manager.GroupEditObjectPen = New Pen(Brushes.MediumPurple, 4)
End Sub
C#Copy Code
private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) 

   Pen back = manager.GroupEditFrameBackPen; 
   Pen fore = manager.GroupEditFrameForePen; 
   manager.GroupEditFrameBackPen = new Pen(Brushes.Black, 3); 
   manager.GroupEditFrameForePen = new Pen(Brushes.White, 3); 
   manager.GroupEditFrameForePen.DashStyle = DashStyles.Dot; 
   manager.GroupEditObjectPen = new Pen(Brushes.MediumPurple, 4); 
}

Remarks

When an AnnGroupObject is displayed with the AnnGroupEditDesigner it is drawn with three pens:

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

GroupEditObjectPen requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.