Documentation ¶
Index ¶
- type Docx
- type TextStyle
- func (t *TextStyle) Clone(T TextStyle)
- func (t *TextStyle) GetBold() bool
- func (t *TextStyle) GetCaps() bool
- func (t *TextStyle) GetColor() string
- func (t *TextStyle) GetDstrike() bool
- func (t *TextStyle) GetEmboss() bool
- func (t *TextStyle) GetFont(attribute string) (string, error)
- func (t *TextStyle) GetFonts() (string, string, string)
- func (t *TextStyle) GetImprint() bool
- func (t *TextStyle) GetItalic() bool
- func (t *TextStyle) GetSize() int
- func (t *TextStyle) GetUnderline() (bool, string, string)
- func (t *TextStyle) GetVanish() bool
- func (t *TextStyle) GetVertAlign() string
- func (t *TextStyle) IsEqual(T TextStyle) bool
- func (t *TextStyle) SetBold(value bool)
- func (t *TextStyle) SetCaps(value bool)
- func (t *TextStyle) SetColor(value string)
- func (t *TextStyle) SetDstrike(value bool)
- func (t *TextStyle) SetEmboss(value bool)
- func (t *TextStyle) SetFont(attribute string, FontName string) error
- func (t *TextStyle) SetFonts(ascii string, hAnsi string, cs string)
- func (t *TextStyle) SetImprint(value bool)
- func (t *TextStyle) SetItalic(value bool)
- func (t *TextStyle) SetSize(value int)
- func (t *TextStyle) SetUnderline(pattern string, color string)
- func (t *TextStyle) SetVanish(value bool)
- func (t *TextStyle) SetVertAlign(value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docx ¶
type Docx struct { Document wDocument // contains filtered or unexported fields }
Docx is the base for the module
func (*Docx) SaveToMemory ¶
SaveToMemory return docx file in a Byte Slice
type TextStyle ¶
type TextStyle struct { Document *xmldom.Node // contains filtered or unexported fields }
TextStyle contains the style of the run or paragraph
func (*TextStyle) GetDstrike ¶
GetDstrike Return true if TextStyle has Double Strike
func (*TextStyle) GetFont ¶
GetFont input attribute possible attributes (ascii,hAnsi,cs) return font name
func (*TextStyle) GetImprint ¶
GetImprint Return true if TextStyle has Imprint
func (*TextStyle) GetUnderline ¶
GetUnderline return (has underline , pattern , color)
func (*TextStyle) GetVertAlign ¶
GetVertAlign Return value of VertAlign can be: basline, subscript, superscript
func (*TextStyle) SetDstrike ¶
SetDstrike set value to Dstrike
func (*TextStyle) SetFont ¶
SetFont input attribute possible attributes (ascii,hAnsi,cs) return font name
func (*TextStyle) SetImprint ¶
SetImprint set value to Imprint
func (*TextStyle) SetSize ¶
SetSize set value to Size value in half-points (half-poits = fontsize*2)
func (*TextStyle) SetUnderline ¶
SetUnderline set value to Underline (pattern , color) if color is empty default value is auto possible values for pattern http://officeopenxml.com/WPtextFormatting.php
func (*TextStyle) SetVertAlign ¶
SetVertAlign set value to VertAlign can be: basline , subscript , superscript