HomeUniDoc
...

Package vmldrawing

Overview ▾

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) Height

func (ss *ShapeStyle) Height() int64

Height return height of shape.

func (*ShapeStyle) SetHeight

func (ss *ShapeStyle) SetHeight(height int64)

SetHeight set height of shape.

func (*ShapeStyle) SetWidth

func (ss *ShapeStyle) SetWidth(width int64)

SetWidth set width of shape.

func (*ShapeStyle) String

func (ss *ShapeStyle) String() string

ToString formatting ShapeStyle to string.

func (*ShapeStyle) Width

func (ss *ShapeStyle) Width() int64

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.