Error processing SSI file
LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)

Show in webframe

CurrentRubberStampType Property






Gets or sets the current automation rubber stamp object type.
Syntax
public AnnRubberStampType CurrentRubberStampType {get; set;}
'Declaration
 
Public Property CurrentRubberStampType As AnnRubberStampType
'Usage
 
Dim instance As AnnAutomationManager
Dim value As AnnRubberStampType
 
instance.CurrentRubberStampType = value
 
value = instance.CurrentRubberStampType

            

            
public:
property AnnRubberStampType CurrentRubberStampType {
   AnnRubberStampType get();
   void set (    AnnRubberStampType value);
}

Property Value

An AnnRubberStampType value that specifies the current automation rubber stamp object type.
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.

Example

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

Copy Code  
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations

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
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;

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;
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
using Leadtools.Silverlight.Demos;

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;
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Imports Leadtools.Silverlight.Demos

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
Requirements

Target Platforms

See Also

Reference

AnnAutomationManager Class
AnnAutomationManager Members

Error processing SSI file
   Leadtools.Windows.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features