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




Gets or sets the background AnnPen uses when drawing the group outline for AnnNewGroupEditDesigner.

Syntax

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

Return Value

The background AnnPen uses when drawing the group outline for AnnNewGroupEditDesigner.

Example

This example changes the following properties of the AnnGroupObject: <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> These show when drawing a group outline with the AnnNewGroupEditDesigner

Visual BasicCopy Code
Public Sub AnnGroupObject_FrameBackPen(ByVal obj As AnnGroupObject)
   Dim back As AnnPen = obj.FrameBackPen
   Dim fore As AnnPen = obj.FrameForePen
   obj.FrameBackPen = New AnnPen(System.Drawing.Color.Black, New AnnLength(3, AnnUnit.Pixel))
   obj.FrameForePen = New AnnPen(System.Drawing.Color.White, New AnnLength(3, AnnUnit.Pixel))
   obj.FrameForePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot
   obj.ObjectPen = New AnnPen(System.Drawing.Color.MediumPurple, New AnnLength(4, AnnUnit.Pixel))
End Sub
C#Copy Code
public void AnnGroupObject_FrameBackPen(AnnGroupObject obj) 

   AnnPen back = obj.FrameBackPen; 
   AnnPen fore = obj.FrameForePen; 
   obj.FrameBackPen = new AnnPen(System.Drawing.Color.Black, new AnnLength(3, AnnUnit.Pixel)); 
   obj.FrameForePen = new AnnPen(System.Drawing.Color.White, new AnnLength(3, AnnUnit.Pixel)); 
   obj.FrameForePen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; 
   obj.ObjectPen = 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:
  • The group outline background pen (FrameBackPen)
  • The group outline foreground pen (FrameForePen)
  • Each selected AnnObject in the group is drawn with the ObjectPen
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