LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
CurrentRubberStampType Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : CurrentRubberStampType Property



The CurrentRubberStampType Property supports WPF/Silverlight.

The CurrentRubberStampType Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the current automation rubber stamp object type. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property CurrentRubberStampType As AnnRubberStampType
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As AnnRubberStampType
 
instance.CurrentRubberStampType = value
 
value = instance.CurrentRubberStampType
C# 
public AnnRubberStampType CurrentRubberStampType {get; set;}
C++/CLI 
public:
property AnnRubberStampType CurrentRubberStampType {
   AnnRubberStampType get();
   void set (    AnnRubberStampType value);
}

Property Value

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

Example

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

Visual BasicCopy Code
Private 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
C#Copy Code
private 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;
}
SilverlightCSharpCopy Code
private 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;
}
SilverlightVBCopy Code
Private 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

Remarks

The current automation rubber stamp type is the 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.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

CurrentRubberStampType requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.