-
Notifications
You must be signed in to change notification settings - Fork 63
/
office.matrixbinding.yml
70 lines (64 loc) · 2.19 KB
/
office.matrixbinding.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
### YamlMime:TSType
name: Office.MatrixBinding
uid: 'office!Office.MatrixBinding:interface'
package: office!
fullName: Office.MatrixBinding
summary: Represents a binding in two dimensions of rows and columns.
remarks: >-
The MatrixBinding object inherits the `id` property, type property, getDataAsync method, and setDataAsync method from
the Binding object.
isPreview: false
isDeprecated: false
type: interface
properties:
- name: columnCount
uid: 'office!Office.MatrixBinding#columnCount:member'
package: office!
fullName: columnCount
summary: 'Gets the number of columns in the matrix data structure, as an integer value.'
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'columnCount: number;'
return:
type: number
description: |-
#### Examples
```TypeScript
function showBindingColumnCount() {
Office.context.document.bindings.getByIdAsync("myBinding", function (asyncResult) {
write("Column: " + asyncResult.value.columnCount);
});
}
// Function that writes to a div with id='message' on the page.
function write(message){
document.getElementById('message').innerText += message;
}
```
- name: rowCount
uid: 'office!Office.MatrixBinding#rowCount:member'
package: office!
fullName: rowCount
summary: 'Gets the number of rows in the matrix data structure, as an integer value.'
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'rowCount: number;'
return:
type: number
description: |-
#### Examples
```TypeScript
function showBindingRowCount() {
Office.context.document.bindings.getByIdAsync("myBinding", function (asyncResult) {
write("Rows: " + asyncResult.value.rowCount);
});
}
// Function that writes to a div with id='message' on the page.
function write(message){
document.getElementById('message').innerText += message;
}
```
extends: '<xref uid="office!Office.Binding:interface" />'