Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Represents the settings set by a custom node, containing methods for retrieving setting values.

public class Settings

Example

The following example demonstrates retrieving a few settings of various types using the Settings class. These settings are controlled by the user interface established by Custom Node HTML. In the following code, a target index and file path are retrieved from the node settings using GetIntSetting method and the GetStringSetting method. 

public class
{
    var targetPage = Settings.GetIntSetting("Target Page");
	var newPagePath = Settings.GetStringSetting("New Page Path");
	Process.Document.ReplacePage(targetPage, newPagePath);
}

Remarks

The Settings class is the main way of interacting with custom node settings. It retrieves setting values that are controlled and set by the user interface of the custom node. Settings can be controlled in a default capacity within the Custom Nodes UI of the administration panel, or per workflow at design time, when a Custom Node is dropped onto the surface. The settings of a node are established by values entered into custom HTML stored in the node.html file within the custom node. Information about how to design Custom Node HTML can be found here: Designing Custom Node HTML.

Properties

Dictionary<string, Setting>

Dictionary containing the settings set by the Custom Node.

Methods

Gets a Setting from the NodeSettings dictionary by setting name.

Gets a string value from the NodeSettings dictionary by setting name.

Gets an int value from the NodeSettings dictionary by setting name.

Gets a bool value from the NodeSettings dictionary by setting name.

Gets a list value from the NodeSettings dictionary by setting name.

  • No labels