LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

FrameBackPen Property

Example 





Gets or sets the background AnnPen uses when drawing the group outline for AnnNewGroupEditDesigner.
Syntax
public AnnPen FrameBackPen {get; set;}
'Declaration
 
Public Property FrameBackPen As AnnPen
'Usage
 
Dim instance As AnnGroupObject
Dim value As AnnPen
 
instance.FrameBackPen = value
 
value = instance.FrameBackPen
public AnnPen FrameBackPen {get; set;}
 get_FrameBackPen();
set_FrameBackPen(value);
public:
property AnnPen^ FrameBackPen {
   AnnPen^ get();
   void set (    AnnPen^ value);
}

Property Value

The background AnnPen uses when drawing the group outline for AnnNewGroupEditDesigner.
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.
Example
 
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
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));
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnGroupObject Class
AnnGroupObject Members
FrameForePen Property
ObjectPen Property
GroupEditFrameBackPen Property
GroupEditFrameForePen Property
GroupEditObjectPen Property

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.