-
Notifications
You must be signed in to change notification settings - Fork 79
/
fp_border_default.Rd
56 lines (49 loc) · 1.31 KB
/
fp_border_default.Rd
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/defaults.R
\name{fp_border_default}
\alias{fp_border_default}
\title{Border formatting properties}
\usage{
fp_border_default(
color = flextable_global$defaults$border.color,
style = "solid",
width = flextable_global$defaults$border.width
)
}
\arguments{
\item{color}{border color - single character value (e.g. "#000000" or "black")}
\item{style}{border style - single character value : See Details for supported
border styles.}
\item{width}{border width - an integer value : 0>= value}
}
\description{
Create a \code{\link[=fp_border]{fp_border()}} object that uses
defaut values defined in flextable defaults formatting properties, i.e.
default border color (see \code{\link[=set_flextable_defaults]{set_flextable_defaults()}}).
}
\examples{
library(flextable)
set_flextable_defaults(
border.color = "orange"
)
z <- flextable(head(cars))
z <- theme_vanilla(z)
z <- vline(
z,
j = 1, part = "all",
border = officer::fp_border()
)
z <- vline(
z,
j = 2, part = "all",
border = fp_border_default()
)
z
init_flextable_defaults()
}
\seealso{
\code{\link[=hline]{hline()}}, \code{\link[=vline]{vline()}}
Other functions for defining formatting properties:
\code{\link{fp_text_default}()}
}
\concept{functions for defining formatting properties}