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




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

Syntax

Visual Basic (Declaration) 
Public Property GroupEditObjectPen As AnnPen
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As AnnPen
 
instance.GroupEditObjectPen = value
 
value = instance.GroupEditObjectPen
C# 
public AnnPen GroupEditObjectPen {get; set;}
Managed Extensions for C++ 
public: __property AnnPen* get_GroupEditObjectPen();
public: __property void set_GroupEditObjectPen( 
   AnnPen* value
);
C++/CLI 
public:
property AnnPen^ GroupEditObjectPen {
   AnnPen^ get();
   void set (AnnPen^ value);
}

Return Value

The object outline AnnPen 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 AnnNewGroupEditDesigner including the following: <list type="bullet"> <item><description>the Outline forecolor to white</description></item> <item><description>the Outline backcolor to black</description></item> <item><description>the Pen used to outline selected objects to purple</description></item> </list>

Visual BasicCopy Code
Public Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager)
   Dim back As AnnPen = manager.GroupEditFrameBackPen
   Dim fore As AnnPen = manager.GroupEditFrameForePen
   manager.GroupEditFrameBackPen = New AnnPen(System.Drawing.Color.Black, New AnnLength(3, AnnUnit.Pixel))
   manager.GroupEditFrameForePen = New AnnPen(System.Drawing.Color.White, New AnnLength(3, AnnUnit.Pixel))
   manager.GroupEditFrameForePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot
   manager.GroupEditObjectPen = New AnnPen(System.Drawing.Color.MediumPurple, New AnnLength(4, AnnUnit.Pixel))
End Sub
C#Copy Code
public void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) 

   AnnPen back= manager.GroupEditFrameBackPen; 
   AnnPen fore = manager.GroupEditFrameForePen; 
   manager.GroupEditFrameBackPen = new AnnPen(System.Drawing.Color.Black, new AnnLength(3, AnnUnit.Pixel)); 
   manager.GroupEditFrameForePen = new AnnPen(System.Drawing.Color.White, new AnnLength(3, AnnUnit.Pixel)); 
   manager.GroupEditFrameForePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; 
   manager.GroupEditObjectPen = new AnnPen(System.Drawing.Color.MediumPurple, new AnnLength(4, AnnUnit.Pixel)); 
}

Remarks

When an AnnGroupObject is displayed with the AnnNewGroupEditDesigner it is drawn with three pens: For more information, refer to New Annotation Features of Version 14.5.

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.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features