- Overview
- Custom activities
- Migrating Activities to .NET 6
- Release Notes
- Building Workflow Analyzer Rules
- Building Activities Project Settings
- Creating Custom Wizards
- Prioritize Activities by Scope
- UiPath.Activities.Api.Base
- UiPath.Studio.Activities.Api
- UiPath.Studio.Activities.Api.Activities
- UiPath.Studio.Activities.Api.BusyService
- UiPath.Studio.Activities.Api.ExpressionEditor
- UiPath.Studio.Activities.Api.Expressions
- UiPath.Studio.Activities.Api.Licensing
- UiPath.Studio.Activities.Api.Mocking
- UiPath.Studio.Activities.Api.ObjectLibrary
- UiPath.Studio.Activities.Api.PackageBindings
- UiPath.Studio.Activities.Api.ProjectProperties
- UiPath.Studio.Activities.Api.ScopedActivities
- UiPath.Studio.Activities.Api.Settings
- UiPath.Studio.Activities.Api.Wizards
- UiPath.Studio.Activities.Api.Workflow
- UiPath.Studio.Api.Controls
- UiPath.Studio.Api.Telemetry
- UiPath.Studio.Api.Theme
- Robot JavaScript SDK
- Triggers SDK
UiPath.Studio.Activities.Api.Settings
In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.Settings.
Entry point for settings-related functionality.
IActivitiesSettingsReader > IActivitiesSettingsService
void AddCategory(SettingsCategory category)
Add a settings category in the project settings UI.
Parameter Type |
Parameter Name |
Description |
---|---|---|
SettingsCategory |
category |
The description of the settings page. |
void AddSection(SettingsCategory category, SettingsSection section)
Add a section to this category.
Parameter Type |
Parameter Name |
Description |
---|---|---|
SettingsCategory |
category | |
SettingsSection |
section |
If the section key does not start with the the category key, the latter is added as prefix of the former and the SettingsElement.Key value is updated. |
void AddSetting(SettingsEditorControlContainer parent, SettingDescriptionBase setting)
Generates a default Settings Editor based on the Setting and passes it to AddSetting(SettingsEditorControlContainer).
Parameter Type |
Parameter Name |
Description |
---|---|---|
SettingsEditorControlContainer |
parent |
The SettingsCategory or SettingsSection where the generated setting control is appended. |
SettingDescriptionBase |
setting |
The setting description that is used to generate a control. |
void AddSetting(SettingsEditorControlContainer parent, SettingsEditorControl setting)
Add a settings control
Parameter Type |
Parameter Name |
Description |
---|---|---|
SettingsEditorControlContainer |
parent |
The SettingsCategory or SettingsSection where the generated setting control is appended. |
SettingsEditorControl |
setting |
The setting description that is used to generate a control. |
bool TrySetValue (string key, string value)
Sets and saves a setting value.
Parameter Type |
Parameter Name |
Description |
---|---|---|
string |
key |
The key of the setting. |
string |
value |
The value of the setting. |
Defines how an activity package prefers to handle Modern vs Classic activities. If set to UseGlobalSetting, it will defer the behavior to the global Studio setting. Having it explicitly set to either UseModern or UseClassic will result in the setting being overwritten for the particular package.
A setting that allows selecting multiple values from a predefined collection of values.
SettingsElement > SettingDescriptionBase > MultipleValuesSelectorDescription
Format a value for display.
SettingsElement > SettingDescriptionBase
Type |
Name |
Description |
---|---|---|
string |
Description |
An explanation of the setting. |
bool |
IsReadOnly |
If set to
true , the value is not editable nor persisted.
|
bool |
IsDesignTime |
Returns
true if invoked at design time. Requires Studio 2021.10 or later.
|
string |
Label |
The label to use for this setting. |
bool |
RequiresPackageReload |
If set to
true , changing this setting requires a package reload. Requires Studio 2021.10 or later.
|
A setting description that applies for a certain type.
SettingsElement > SettingDescriptionBase > SettingDescriptionBase<T>
A settings element that is part of the UI.
SettingsElement > SettingsControlBase
Settings editor. It appears as a label with an associated control. An instance of this can be passed to SettingsSection.AddSetting(SettingsEditorControl).
SettingsElement > SettingsControlBase > SettingsEditorControlBase
A settings UI element that can host editors.
SettingsElement > SettingsControlBase > SettingsEditorControlContainer
Base class for settings elements with associated keys.
A settings category.
Inheritance
SettingsControlBase > SettingsEditorControlContainer > SettingsCategory
Properties
Type |
Name |
Description |
---|---|---|
string |
Description |
(Optional) Displayed bellow the title, explains the purpose of this page. |
string |
Header |
The category header. |
bool |
IsHidden |
If set to
true , the category will not be displayed in the Project Settings dialog. Requires Studio 2020.4 or later.
|
Remarks
Adds a category in activities project settings.
A settings group box containing related controls.
SettingsElement > SettingsControlBase > SettingsEditorControlContainer > SettingsSection
Type |
Name |
Description |
---|---|---|
string |
Description |
(Optional) Displayed bellow the title, an explanation the purpose of this section. |
bool |
IsExpanded |
If set to
true , the section is expanded by default.
|
string |
Title |
The section title. |
A setting entry that allows editing a single value of type T. A default editor is created based on T.
SettingsElement > SettingDescriptionBase > SettingDescriptionBase<T> > SingleValueEditorDescription
A setting that allows selecting a single value from a predefined collection of values.
SettingsElement > SettingDescriptionBase > SettingDescriptionBase<T> > SingleValueEditorDescription > SingleValueSelectorDescription
- IActivitiesSettingsService
- Inheritance
- Methods
- ModernClassicSettings
- Constants
- MultipleValuesSelectorDescription
- Inheritance
- Properties
- SettingDescriptionBase
- Inheritance
- Properties
- SettingDescriptionBase <T>
- Inheritance
- Generic Type T
- Properties
- SettingsControlBase
- Inheritance
- Properties
- SettingsEditorControlBase
- Inheritance
- Properties
- SettingsEditorControlContainer
- Inheritance
- SettingsElement
- Properties
- SettingsCategory
- SettingsSection
- Inheritance
- Properties
- Remarks
- SingleValueEditorDescription
- Inheritance
- Generic Type T
- Properties
- SingleValueSelectorDescription
- Inheritance
- Properties