const ( ShapeStylePositionAbsolute = "absolute" ShapeStylePositionRelative = "relative" )
func CreateFormula(s string) *vml.CT_F
CreateFormula creates F element for typeFormulas.
func NewCommentShape(col, row int64) *vml.Shape
NewCommentShape creates a new comment shape for a given cell index. The indices here are zero based.
type Container struct { Layout *vml.OfcShapelayout ShapeType *vml.Shapetype Shape []*vml.Shape }
func NewCommentDrawing() *Container
NewCommentDrawing constructs a new comment drawing.
func NewContainer() *Container
func (c *Container) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (c *Container) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
ShapeStyle is style attribute of v:shape element.
type ShapeStyle struct {
// contains filtered or unexported fields
}
func NewShapeStyle(style string) ShapeStyle
NewShapeStyle accept value of string style attribute in v:shape and format it to generate ShapeStyle.
func (ss *ShapeStyle) Bottom() float64
Bottom get bottom attribute of shape style.
func (ss *ShapeStyle) Height() float64
Height return height of shape.
func (ss *ShapeStyle) Left() float64
Left get left attribute of shape style.
func (ss *ShapeStyle) MSOPositionHorizontalRelative() string
MSOPositionHorizontalRelative get `mso-position-horizontal-relative` attribute of shape style.
func (ss *ShapeStyle) MSOPositionVerticalRelative() string
MSOPositionVerticalRelative get `mso-position-vertical-relative` attribute of shape style.
func (ss *ShapeStyle) Margins() (float64, float64, float64, float64)
Margins get margin top, left, bottom, and right of shape style.
func (ss *ShapeStyle) Position() string
Position get position attribute of shape style.
func (ss *ShapeStyle) Right() float64
Right get right attribute of shape style.
func (ss *ShapeStyle) SetHeight(height float64)
SetHeight set height of shape.
func (ss *ShapeStyle) SetWidth(width float64)
SetWidth set width of shape.
func (ss *ShapeStyle) String() string
ToString formatting ShapeStyle to string.
func (ss *ShapeStyle) Top() float64
Top get top attribute of shape style.
func (ss *ShapeStyle) Width() float64
Width return width of shape.
TextpathStyle is style attribute of element v:textpath.
type TextpathStyle struct {
// contains filtered or unexported fields
}
func NewTextpathStyle(style string) TextpathStyle
NewTextpathStyle accept value of string style attribute of element v:textpath and format it to generate TextpathStyle.
func (ts *TextpathStyle) FontFamily() string
FontFamily returns fontFamily of the text.
func (ts *TextpathStyle) FontSize() int64
FontSize returns fontSize of the text.
func (ts *TextpathStyle) IsBold() bool
IsBold returns true if text is bold.
func (ts *TextpathStyle) IsItalic() bool
IsItalic returns true if text is italic.
func (ts *TextpathStyle) SetBold(bold bool)
SetBold sets text to bold.
func (ts *TextpathStyle) SetFontFamily(fontFamily string)
SetFontFamily sets text's fontFamily.
func (ts *TextpathStyle) SetFontSize(fontSize int64)
SetFontSize sets text's fontSize.
func (ts *TextpathStyle) SetItalic(italic bool)
SetItalic sets text to italic.
func (ts *TextpathStyle) String() string
ToString generate string of TextpathStyle.