File: setWindowSize.Rd

package info (click to toggle)
r-cran-openxlsx 4.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,328 kB
  • sloc: cpp: 1,867; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setWindowSize.R
\name{setWindowSize}
\alias{setWindowSize}
\alias{getWindowSize}
\title{Set and Get Window Size for xlsx file}
\usage{
setWindowSize(
  wb,
  xWindow = NULL,
  yWindow = NULL,
  windowWidth = NULL,
  windowHeight = NULL
)

getWindowSize(wb)
}
\arguments{
\item{wb}{A Workbook object}

\item{xWindow}{the horizontal coordinate of the top left corner of the window}

\item{yWindow}{the vertical coordinate of the top left corner of the window}

\item{windowWidth}{the width of the window}

\item{windowHeight}{the height of the window

Set the size and position of the window when you open the xlsx file.  The units are in twips.  See
\href{https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.workbookview?view=openxml-2.8.1}{Microsoft's documentation for the xlsx standard}}
}
\description{
Set and Get Window Size for xlsx file
}
\examples{
## Create Workbook object and add worksheets
wb <- createWorkbook()
addWorksheet(wb, "S1")
getWindowSize(wb)
setWindowSize(wb, windowWidth = 10000)
}