←Select platform

FrameBackPen Property

Summary

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

Syntax

C#
VB
C++
public AnnPen FrameBackPen { get; set; } 
  
Public Property FrameBackPen As Leadtools.Annotations.AnnPen 
public: 
property Leadtools.Annotations.AnnPen^ FrameBackPen { 
   Leadtools.Annotations.AnnPen^ get(); 
   void set (    Leadtools.Annotations.AnnPen^ ); 
} 

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 (Deprecated).

Example

This example changes the following properties of the AnnGroupObject:

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

These show when drawing a group outline with the AnnNewGroupEditDesigner

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
 
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)); 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
 
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 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly