HomeUniDoc
HomeUniDoc
...

Package vmldrawing

Overview ▾

Index ▾

Constants
func CreateFormula(s string) *vml.CT_F
func NewCommentShape(col, row int64) *vml.Shape
type Container
    func NewCommentDrawing() *Container
    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
type ShapeStyle
    func NewShapeStyle(style string) ShapeStyle
    func (ss *ShapeStyle) Bottom() float64
    func (ss *ShapeStyle) Height() float64
    func (ss *ShapeStyle) Left() float64
    func (ss *ShapeStyle) MSOPositionHorizontalRelative() string
    func (ss *ShapeStyle) MSOPositionVerticalRelative() string
    func (ss *ShapeStyle) Margins() (float64, float64, float64, float64)
    func (ss *ShapeStyle) Position() string
    func (ss *ShapeStyle) Right() float64
    func (ss *ShapeStyle) SetHeight(height float64)
    func (ss *ShapeStyle) SetWidth(width float64)
    func (ss *ShapeStyle) String() string
    func (ss *ShapeStyle) Top() float64
    func (ss *ShapeStyle) Width() float64
type TextpathStyle
    func NewTextpathStyle(style string) TextpathStyle
    func (ts *TextpathStyle) FontFamily() string
    func (ts *TextpathStyle) FontSize() int64
    func (ts *TextpathStyle) IsBold() bool
    func (ts *TextpathStyle) IsItalic() bool
    func (ts *TextpathStyle) SetBold(bold bool)
    func (ts *TextpathStyle) SetFontFamily(fontFamily string)
    func (ts *TextpathStyle) SetFontSize(fontSize int64)
    func (ts *TextpathStyle) SetItalic(italic bool)
    func (ts *TextpathStyle) String() string

Package files

commentdrawing.go container.go shapestyle.go shapetypeformula.go textpathstyle.go

Constants

const (
    ShapeStylePositionAbsolute = "absolute"
    ShapeStylePositionRelative = "relative"
)

func CreateFormula

func CreateFormula(s string) *vml.CT_F

CreateFormula creates F element for typeFormulas.

func NewCommentShape

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

type Container struct {
    Layout    *vml.OfcShapelayout
    ShapeType *vml.Shapetype
    Shape     []*vml.Shape
}

func NewCommentDrawing

func NewCommentDrawing() *Container

NewCommentDrawing constructs a new comment drawing.

func NewContainer

func NewContainer() *Container

func (*Container) MarshalXML

func (c *Container) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Container) UnmarshalXML

func (c *Container) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type ShapeStyle

ShapeStyle is style attribute of v:shape element.

type ShapeStyle struct {
    // contains filtered or unexported fields
}

func NewShapeStyle

func NewShapeStyle(style string) ShapeStyle

NewShapeStyle accept value of string style attribute in v:shape and format it to generate ShapeStyle.

func (*ShapeStyle) Bottom

func (ss *ShapeStyle) Bottom() float64

Bottom get bottom attribute of shape style.

func (*ShapeStyle) Height

func (ss *ShapeStyle) Height() float64

Height return height of shape.

func (*ShapeStyle) Left

func (ss *ShapeStyle) Left() float64

Left get left attribute of shape style.

func (*ShapeStyle) MSOPositionHorizontalRelative

func (ss *ShapeStyle) MSOPositionHorizontalRelative() string

MSOPositionHorizontalRelative get `mso-position-horizontal-relative` attribute of shape style.

func (*ShapeStyle) MSOPositionVerticalRelative

func (ss *ShapeStyle) MSOPositionVerticalRelative() string

MSOPositionVerticalRelative get `mso-position-vertical-relative` attribute of shape style.

func (*ShapeStyle) Margins

func (ss *ShapeStyle) Margins() (float64, float64, float64, float64)

Margins get margin top, left, bottom, and right of shape style.

func (*ShapeStyle) Position

func (ss *ShapeStyle) Position() string

Position get position attribute of shape style.

func (*ShapeStyle) Right

func (ss *ShapeStyle) Right() float64

Right get right attribute of shape style.

func (*ShapeStyle) SetHeight

func (ss *ShapeStyle) SetHeight(height float64)

SetHeight set height of shape.

func (*ShapeStyle) SetWidth

func (ss *ShapeStyle) SetWidth(width float64)

SetWidth set width of shape.

func (*ShapeStyle) String

func (ss *ShapeStyle) String() string

ToString formatting ShapeStyle to string.

func (*ShapeStyle) Top

func (ss *ShapeStyle) Top() float64

Top get top attribute of shape style.

func (*ShapeStyle) Width

func (ss *ShapeStyle) Width() float64

Width return width of shape.

type TextpathStyle

TextpathStyle is style attribute of element v:textpath.

type TextpathStyle struct {
    // contains filtered or unexported fields
}

func NewTextpathStyle

func NewTextpathStyle(style string) TextpathStyle

NewTextpathStyle accept value of string style attribute of element v:textpath and format it to generate TextpathStyle.

func (*TextpathStyle) FontFamily

func (ts *TextpathStyle) FontFamily() string

FontFamily returns fontFamily of the text.

func (*TextpathStyle) FontSize

func (ts *TextpathStyle) FontSize() int64

FontSize returns fontSize of the text.

func (*TextpathStyle) IsBold

func (ts *TextpathStyle) IsBold() bool

IsBold returns true if text is bold.

func (*TextpathStyle) IsItalic

func (ts *TextpathStyle) IsItalic() bool

IsItalic returns true if text is italic.

func (*TextpathStyle) SetBold

func (ts *TextpathStyle) SetBold(bold bool)

SetBold sets text to bold.

func (*TextpathStyle) SetFontFamily

func (ts *TextpathStyle) SetFontFamily(fontFamily string)

SetFontFamily sets text's fontFamily.

func (*TextpathStyle) SetFontSize

func (ts *TextpathStyle) SetFontSize(fontSize int64)

SetFontSize sets text's fontSize.

func (*TextpathStyle) SetItalic

func (ts *TextpathStyle) SetItalic(italic bool)

SetItalic sets text to italic.

func (*TextpathStyle) String

func (ts *TextpathStyle) String() string

ToString generate string of TextpathStyle.