←Select platform

GroupEditObjectPen Property

Summary

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

Syntax

C#
VB
C++
public Color GroupEditObjectPen { get; set; } 
  
Public Property GroupEditObjectPen As Color 
public: 
property Color GroupEditObjectPen { 
   Color get(); 
   void set (    Color ); 
} 

Property Value

The object outline System.Windows.Media.Color used when drawing selected objects in a group for all AnnEditDesigner derived classes.

Remarks

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

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
    C#
    VB
    Silverlight C#
    Silverlight VB
    using Leadtools.Windows.Controls; 
    using Leadtools.Windows.Annotations; 
    using Leadtools.Demos; 
    using Leadtools.Help; 
     
    private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) 
    { 
       manager.GroupEditFrameBackPen = Colors.Black; 
       manager.GroupEditFrameForePen = Colors.White; 
       manager.GroupEditObjectPen = Colors.MediumPurple; 
    } 
    Imports Leadtools.Windows.Controls 
    Imports Leadtools.Windows.Annotations 
     
    Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager) 
       manager.GroupEditFrameBackPen = Colors.Black 
       manager.GroupEditFrameForePen = Colors.White 
       manager.GroupEditObjectPen = Colors.MediumPurple 
    End Sub 
    using Leadtools.Windows.Controls; 
    using Leadtools.Windows.Annotations; 
    using Leadtools.Examples; 
    using Leadtools.Silverlight.Demos; 
    //using Leadtools.Help; 
     
    private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) 
    { 
       manager.GroupEditFrameBackPen = Colors.Black; 
       manager.GroupEditFrameForePen = Colors.White; 
       manager.GroupEditObjectPen = Colors.Magenta; 
    } 
    Imports Leadtools.Windows.Controls 
    Imports Leadtools.Windows.Annotations 
    Imports Leadtools.Silverlight.Demos 
    'using Leadtools.Help; 
     
    Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager) 
       manager.GroupEditFrameBackPen = Colors.Black 
       manager.GroupEditFrameForePen = Colors.White 
       manager.GroupEditObjectPen = Colors.Magenta 
    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.Windows.Annotations Assembly