←Select platform

CurrentRubberStampType Property

Summary

Gets or sets the current automation rubber stamp object type.

Syntax

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

Property Value

An AnnRubberStampType value that specifies the current automation rubber stamp object type.

Remarks

The current automation rubber stamp type is the AnnRubberStampObject.Type of the AnnRubberStampObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It can also change if the user makes a selection from the automation ToolBar or selects a type in the Rubber Stamp Properties dialog.

The CurrentRubberStampTypeChanged event is fired when this property is changed.

Example

This example sets "void" as the current automation rubber stamp type.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.WinForms; 
using Leadtools.Codecs; 
 
public void AnnAutomationManager_CurrentRubberStampType(AnnAutomationManager manager) 
{ 
   // if you are using the automation toolbar, notice the rubber stamp button gets selected as well and the void menu item gets selected 
 
   manager.CurrentRubberStampType = AnnRubberStampType.Void; 
 
   // select rubber stamp as the current object 
   manager.CurrentObjectId = AnnAutomationManager.RubberStampObjectId; 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.WinForms 
Imports Leadtools.Codecs 
 
Public Sub AnnAutomationManager_CurrentRubberStampType(ByVal manager As AnnAutomationManager) 
   ' if you are using the automation toolbar, notice the rubber stamp button gets selected as well and the void menu item gets selected 
 
   manager.CurrentRubberStampType = AnnRubberStampType.Void 
 
   ' select rubber stamp as the current object 
   manager.CurrentObjectId = AnnAutomationManager.RubberStampObjectId 
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