Document Session
19 nodes
On this page 19
Add Paragraph
FunctionAdds a paragraph at the end of an Impulse document.
AddParagraph
Document Session: Document Session
text: Text
style: Textvoid AddParagraph(
DocumentSession Document Session,
string text,
string style = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| text | Text | — | Its text. |
| style | Text | — | A paragraph style's name, or nothing for the body style. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Add Sheet
FunctionAdds a sheet to a Formula workbook.
AddSheet(Document Session: Document Session, name: Text)
void AddSheet(DocumentSession Document Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | Its name. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Add Slide
FunctionAdds a slide at the end of an Expo presentation, with a title and body text.
AddSlide -> Number
Document Session: Document Session
title: Text
body: Textdouble AddSlide(
DocumentSession Document Session,
string title,
string body = "")Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| title | Text | — | The title. |
| body | Text | — | The body text, or nothing. |
Returns
| result | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Boolean Parameter
FunctionOne of the document's parameters as true or false.
BooleanParameter -> Truth
Document Session: Document Session
name: Textbool BooleanParameter(
DocumentSession Document Session,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
Returns
| result | Truth |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Document Name
FunctionThe document's name: a Command's, or one Open Office Document opened.
DocumentName(Document Session: Document Session) -> Text
string DocumentName(DocumentSession Document Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — |
Returns
| result | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Document Path
FunctionThe document's file, or nothing for a document never saved: a Command's, or one Open Office Document opened.
DocumentPath(Document Session: Document Session) -> Text
string DocumentPath(DocumentSession Document Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — |
Returns
| result | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Get Cell
FunctionOne cell's value in a Formula workbook.
GetCell -> Any
Document Session: Document Session
address: Textobject GetCell(DocumentSession Document Session, string address)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| address | Text | — | The cell, B2 or Summary!B2. |
Returns
| result | Any |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Has Parameter
FunctionWhether the document has a parameter of a name.
HasParameter -> Truth
Document Session: Document Session
name: Textbool HasParameter(DocumentSession Document Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
Returns
| result | Truth |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Number Parameter
FunctionOne of the document's parameters as a number.
NumberParameter -> Number
Document Session: Document Session
name: Textdouble NumberParameter(
DocumentSession Document Session,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
Returns
| result | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Parameter
FunctionThe value of one of the document's parameters, as it is held: a number, a piece of text or true/false.
Parameter(Document Session: Document Session, name: Text) -> Any
object Parameter(DocumentSession Document Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
Returns
| result | Any |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Parameter Names
FunctionThe names of the document's parameters, in the order the document keeps them.
ParameterNames(Document Session: Document Session) -> Text Array
string[] ParameterNames(DocumentSession Document Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — |
Returns
| result | Text Array |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Run Command
FunctionRuns one of the document's Commands, a Lua, C# or graph script it carries, inside this run's transaction: how an event handler hands its work to a Command. A Command that fails fails this run, and the whole step is taken back.
RunCommand(Document Session: Document Session, name: Text)
void RunCommand(DocumentSession Document Session, string name)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The script's name, Refresh.lua, or its name without the extension when no other script shares it. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Save
FunctionSaves a document Open Office Document opened, parameters and all; the window saves a document it lent.
Save(Document Session: Document Session)
void Save(DocumentSession Document Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Set Cell
FunctionSets one cell's value in a Formula workbook; text starting with = stays text.
SetCell
Document Session: Document Session
address: Text
value: Anyvoid SetCell(
DocumentSession Document Session,
string address,
object value)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| address | Text | — | The cell, B2 or Summary!B2. |
| value | Any | — | The value. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Set Formula
FunctionPuts a formula into a cell of a Formula workbook.
SetFormula
Document Session: Document Session
address: Text
formula: Textvoid SetFormula(
DocumentSession Document Session,
string address,
string formula)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| address | Text | — | The cell. |
| formula | Text | — | The formula, =SUM(A1:A9). |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Set Parameter
FunctionSets one of the document's parameters, converted to its type: a Command or an event handler only.
SetParameter
Document Session: Document Session
name: Text
value: Anyvoid SetParameter(
DocumentSession Document Session,
string name,
object value)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
| value | Any | — | Its new value. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Slide Count
FunctionHow many slides an Expo presentation has.
SlideCount(Document Session: Document Session) -> Number
double SlideCount(DocumentSession Document Session)
Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — |
Returns
| result | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Text Parameter
FunctionOne of the document's parameters as text.
TextParameter -> Text
Document Session: Document Session
name: Textstring TextParameter(
DocumentSession Document Session,
string name)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| name | Text | — | The parameter's name. |
Returns
| result | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office
Write Table
FunctionWrites a table into a Formula workbook, its top-left corner at a cell.
WriteTable
Document Session: Document Session
address: Text
table: Object[,]void WriteTable(
DocumentSession Document Session,
string address,
object[,] table)Parameters
| name | type | default | description |
|---|---|---|---|
| Document Session | Document Session | — | |
| address | Text | — | The top-left cell. |
| table | Object[,] | — | The table. |
- Ships with
- Divooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Document Session
- Package
- Methodox Office