Gets or sets the current user mode.
Syntax
Visual Basic (Declaration) | |
---|
Public Property UserMode As AnnUserMode |
XAML Attributes Usage | |
---|
<object UserMode=Leadtools.Windows.Annotations.AnnUserMode .../> |
XAML Attributes Usage | |
---|
<object UserMode=Leadtools.Windows.Annotations.AnnUserMode .../> |
Return Value
An
AnnUserMode value that specifies the current user mode.
Example
This example flips the user mode between run and design.
Visual Basic | Copy Code |
---|
Private Sub AnnAutomationManager_UserMode(ByVal manager As AnnAutomationManager)
If manager.UserMode = AnnUserMode.Design Then
manager.UserMode = AnnUserMode.Run
Else
manager.UserMode = AnnUserMode.Design
End If
End Sub |
C# | Copy Code |
---|
private void AnnAutomationManager_UserMode(AnnAutomationManager manager) { if(manager.UserMode == AnnUserMode.Design) manager.UserMode = AnnUserMode.Run; else manager.UserMode = AnnUserMode.Design; } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also