Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.29
|
Leadtools.Annotations.Automation Assembly > Leadtools.Annotations.Automation Namespace > AnnAutomationManager Class : GroupsRoles Property |
public AnnGroupsRoles GroupsRoles {get; set;}
'Declaration
Public Property GroupsRoles As AnnGroupsRoles
public AnnGroupsRoles GroupsRoles {get; set;}
@property (nonatomic) LTAnnGroupsRoles* groupsRoles;
public AnnGroupsRoles getGroupsRoles() public void setGroupsRoles(AnnGroupsRoles data)
<br/>get_GroupsRoles();<br/>set_GroupsRoles(value);<br/>Object.defineProperty('GroupsRoles');
The following occurs when the value of GroupsRoles is not null:
The user ID of any annotation object added to a container will be updated if it was empty. This is performed by checking the value of AnnObject.UserId against an empty string or null, and if so, updating this value with AnnGroupsRoles.CurrentUser.
When performing hit-testing, objects that do not have the correct role will be ignored and cannot be hit-tested (and thus, selected by the automation). This is performed by calling AnnGroupsRoles.IsCurrentUserInRole with AnnOperationType.HitTestObjects and either allowing the hit-test or ignoring it based on the method's return value. This is done when HitTestPoint or HitTestRect is called.
AnnAutomationManager will automatically set the value of GroupsRoles to the AnnContainer.GroupsRoles of all the containers used in the system.