Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
571d2dd9
Commit
571d2dd9
authored
Jul 06, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cell api builder:
add methods GetRow, GetCol, GetRangeByNumber
parent
735714ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
cell/apiBuilder.js
cell/apiBuilder.js
+31
-0
No files found.
cell/apiBuilder.js
View file @
571d2dd9
...
...
@@ -123,6 +123,17 @@
return
new
ApiRange
(
this
.
worksheet
.
getRange2
(
sRange
));
};
/**
* Returns an object that represents the range
* @memberof ApiWorksheet
* @param {Number} row
* @param {Number} col
* @returns {ApiRange}
*/
ApiWorksheet
.
prototype
.
GetRangeByNumber
=
function
(
row
,
col
)
{
return
new
ApiRange
(
this
.
worksheet
.
getCell3
(
row
,
col
));
};
/**
* Format as table
* @memberof ApiWorksheet
...
...
@@ -284,6 +295,23 @@
}
};
/**
* Get cell row
* @memberof ApiRange
* @returns {Number}
*/
ApiRange
.
prototype
.
GetRow
=
function
()
{
return
this
.
range
.
bbox
.
r1
;
};
/**
* Get cell column
* @memberof ApiRange
* @returns {Number}
*/
ApiRange
.
prototype
.
GetCol
=
function
()
{
return
this
.
range
.
bbox
.
c1
;
};
/**
* Set cell value
* @memberof ApiRange
...
...
@@ -344,10 +372,13 @@
ApiWorksheet
.
prototype
[
"
GetActiveCell
"
]
=
ApiWorksheet
.
prototype
.
GetActiveCell
;
ApiWorksheet
.
prototype
[
"
SetName
"
]
=
ApiWorksheet
.
prototype
.
SetName
;
ApiWorksheet
.
prototype
[
"
GetRange
"
]
=
ApiWorksheet
.
prototype
.
GetRange
;
ApiWorksheet
.
prototype
[
"
GetRangeByNumber
"
]
=
ApiWorksheet
.
prototype
.
GetRangeByNumber
;
ApiWorksheet
.
prototype
[
"
FormatAsTable
"
]
=
ApiWorksheet
.
prototype
.
FormatAsTable
;
ApiWorksheet
.
prototype
[
"
SetColumnWidth
"
]
=
ApiWorksheet
.
prototype
.
SetColumnWidth
;
ApiWorksheet
.
prototype
[
"
AddChart
"
]
=
ApiWorksheet
.
prototype
.
AddChart
;
ApiRange
.
prototype
[
"
GetRow
"
]
=
ApiRange
.
prototype
.
GetRow
;
ApiRange
.
prototype
[
"
GetCol
"
]
=
ApiRange
.
prototype
.
GetCol
;
ApiRange
.
prototype
[
"
SetValue
"
]
=
ApiRange
.
prototype
.
SetValue
;
ApiRange
.
prototype
[
"
SetFontColor
"
]
=
ApiRange
.
prototype
.
SetFontColor
;
ApiRange
.
prototype
[
"
SetFontSize
"
]
=
ApiRange
.
prototype
.
SetFontSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment