The GroupEditObjectPen Property supports WPF/Silverlight.
The GroupEditObjectPen Property is available in LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the object outline System.Windows.Media.Color used when drawing selected objects in a group for all AnnEditDesigner derived classes. Supported in Silverlight, Windows Phone 7| Visual Basic (Declaration) | |
|---|---|
Public Property GroupEditObjectPen As Color | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As AnnAutomationManager Dim value As Color instance.GroupEditObjectPen = value value = instance.GroupEditObjectPen | |
| C# | |
|---|---|
public Color GroupEditObjectPen {get; set;} | |
Property Value
The object outline System.Windows.Media.Color used when drawing selected objects in a group for all AnnEditDesigner derived classes.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
| Visual Basic | Copy Code |
|---|---|
Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager) manager.GroupEditFrameBackPen = Colors.Black manager.GroupEditFrameForePen = Colors.White manager.GroupEditObjectPen = Colors.MediumPurple End Sub | |
| C# | Copy Code |
|---|---|
private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) { manager.GroupEditFrameBackPen = Colors.Black; manager.GroupEditFrameForePen = Colors.White; manager.GroupEditObjectPen = Colors.MediumPurple; } | |
| SilverlightCSharp | Copy Code |
|---|---|
private void AnnAutomationManager_GroupEditObjectPen(AnnAutomationManager manager) { manager.GroupEditFrameBackPen = Colors.Black; manager.GroupEditFrameForePen = Colors.White; manager.GroupEditObjectPen = Colors.Magenta; } | |
| SilverlightVB | Copy Code |
|---|---|
Private Sub AnnAutomationManager_GroupEditObjectPen(ByVal manager As AnnAutomationManager) manager.GroupEditFrameBackPen = Colors.Black manager.GroupEditFrameForePen = Colors.White manager.GroupEditObjectPen = Colors.Magenta End Sub | |
When an AnnGroupObject is displayed with the AnnGroupEditDesigner it is drawn with three pens:
- The group outline background pen (GroupEditFrameBackPen)
- The group outline foreground pen (GroupEditFrameForePen)
- Each selected AnnObject in the group is drawn with the GroupEditObjectPen
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Copy Code