Apply exhibit symbol

Modified on Mon, 5 Oct at 1:55 PM

In BaseExtensions we have a command for inserting exhibit symbols inside a textbox in the beginning of a selected paragraph. If more than one paragraph is selected it will only run on the first paragraph.

By default the symbol is inserted in a textbox, but we also allow direct formatting of the paragraph, this sets the indentation directly on the paragraph, then inserts the exhibitsymbol before start and follows with the separator before the text.

CMD

This command is called: BaseExtensions:apply-exhibit

<Cmd case="BaseExtensions:apply-exhibit" exhibitstring="xx" Indentation="xx" Separator="xx"/>

<Cmd case="BaseExtensions:apply-exhibit" exhibitstring=".//" Indentation="-2.5"/>

Parameters

ExhibitString

The symbol that should be inserted before the paragraph. If this parameter is empty or omitted, the code won’t do anything.

Indentation - optional

The indentation in centimeters. This can be negative numbers to move it to the left and positive numbers to move it to the right. If this parameter is omitted, the value is set to 0. If UseDirectFormatting is true then this is matching the Indentation before text parameter in the paragraph settings in Word.

UseDirectFormatting - optional

Specifies if we are applying directformatting to the paragragh for the exhibit instead of using a textbox.
Default is false.

AltText - optional

The alternative text for the textbox, default it "Bilagstegn".

UseStyle - optional

If we want to specify what style to use in the textbox, default is textbox-default(Normal). This can be from this list WdBuiltinStyle or just the name of the style.

Separator - optional (only applicable if UseDirectFormatting = true)

This parameter defines the separator in between the ExhibitSymbol and the rest of the paragraph. If this parameter is omitted the default value is "\t" which corresponds to a TAB. This is only applicable if UseDirectFormatting is true.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article