run

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	style.RunProperties
}

Properties w:rPr 文本块样式

type Run

type Run struct {
	XMLName xml.Name `xml:"w:r,omitempty"`
	Space   string   `xml:"xml:space,attr,omitempty"`

	Properties *Properties `xml:"w:rPr,omitempty"`

	InstrText string `xml:"w:instrText,omitempty"`

	Text string `xml:"w:t"`
}

func (*Run) Bold

func (r *Run) Bold() *Run

Bold ...

func (*Run) Color

func (r *Run) Color(color ...any) *Run

Color allows to set run color [3]uint8{0-255,0-255,0-255} , 000000-FFFFFF

func (*Run) Font

func (r *Run) Font(font ...string) *Run

Font sets the font of the run font []string = []string{"楷体"} 或 []string{ASCII,EastAsia,HAnsi,Cs,Hint}

func (*Run) Highlight

func (r *Run) Highlight(val string) *Run

Highlight ...

func (*Run) Italic

func (r *Run) Italic() *Run

Italic ...

func (*Run) Shade

func (r *Run) Shade(val, color, fill string) *Run

Shade allows to set run shade

func (*Run) Size

func (r *Run) Size(size float64) *Run

Size 字号

func (*Run) Underline

func (r *Run) Underline(val string) *Run

Underline 可选如下:

dash - a dashed line
dashDotDotHeavy - a series of thick dash, dot, dot characters
dashDotHeavy - a series of thick dash, dot characters
dashedHeavy - a series of thick dashes
dashLong - a series of long dashed characters
dashLongHeavy - a series of thick, long, dashed characters
dotDash - a series of dash, dot characters
dotDotDash - a series of dash, dot, dot characters
dotted - a series of dot characters
dottedHeavy - a series of thick dot characters
double - two lines
none - no underline
single - a single line
thick - a single think line
wave - a single wavy line
wavyDouble - a pair of wavy lines
wavyHeavy - a single thick wavy line
words - a single line beneath all non-space characters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL