LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
GroupEditObjectPen Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : GroupEditObjectPen Property



The GroupEditObjectPen Property supports WPF/Silverlight.

The GroupEditObjectPen Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the object outline System.Windows.Media.Color used when drawing selected objects in a group for all AnnEditDesigner derived classes. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property GroupEditObjectPen As Color
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Color
 
instance.GroupEditObjectPen = value
 
value = instance.GroupEditObjectPen
C# 
public Color GroupEditObjectPen {get; set;}
C++/CLI 
public:
property Color GroupEditObjectPen {
   Color get();
   void set (    Color value);
}

Property Value

The object outline System.Windows.Media.Color 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)
   manager.GroupEditFrameBackPen = Colors.Black
   manager.GroupEditFrameForePen = Colors.White
   manager.GroupEditObjectPen = Colors.MediumPurple
End Sub
C#Copy Code
private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager)
{
   manager.GroupEditFrameBackPen = Colors.Black;
   manager.GroupEditFrameForePen = Colors.White;
   manager.GroupEditObjectPen = Colors.MediumPurple;
}
SilverlightCSharpCopy Code
private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager)
{
   manager.GroupEditFrameBackPen = Colors.Black;
   manager.GroupEditFrameForePen = Colors.White;
   manager.GroupEditObjectPen = Colors.Magenta;
}
SilverlightVBCopy Code
Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager)
   manager.GroupEditFrameBackPen = Colors.Black
   manager.GroupEditFrameForePen = Colors.White
   manager.GroupEditObjectPen = Colors.Magenta
End Sub

Remarks

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

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.