vmldrawing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShapeStylePositionAbsolute = "\u0061\u0062\u0073\u006f\u006c\u0075\u0074\u0065"
	ShapeStylePositionRelative = "\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065"
)

Variables

This section is empty.

Functions

func CreateFormula

func CreateFormula(s string) *_eg.CT_F

CreateFormula creates F element for typeFormulas.

func NewCommentShape

func NewCommentShape(col, row int64) *_eg.Shape

NewCommentShape creates a new comment shape for a given cell index. The indices here are zero based.

Types

type Container

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

func NewCommentDrawing

func NewCommentDrawing() *Container

NewCommentDrawing constructs a new comment drawing.

func NewContainer

func NewContainer() *Container

func (*Container) MarshalXML

func (_d *Container) MarshalXML(e *_ee.Encoder, start _ee.StartElement) error

func (*Container) UnmarshalXML

func (_fc *Container) UnmarshalXML(d *_ee.Decoder, start _ee.StartElement) error

type ShapeStyle

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

ShapeStyle is style attribute of v:shape element.

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 (_ad *ShapeStyle) Bottom() float64

Bottom get bottom attribute of shape style.

func (*ShapeStyle) Height

func (_fed *ShapeStyle) Height() float64

Height return height of shape.

func (*ShapeStyle) Left

func (_cge *ShapeStyle) Left() float64

Left get left attribute of shape style.

func (*ShapeStyle) MSOPositionHorizontalRelative

func (_bdg *ShapeStyle) MSOPositionHorizontalRelative() string

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

func (*ShapeStyle) MSOPositionVerticalRelative

func (_ae *ShapeStyle) MSOPositionVerticalRelative() string

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

func (*ShapeStyle) Margins

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

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

func (*ShapeStyle) Position

func (_ca *ShapeStyle) Position() string

Position get position attribute of shape style.

func (*ShapeStyle) Right

func (_bag *ShapeStyle) Right() float64

Right get right attribute of shape style.

func (*ShapeStyle) SetHeight

func (_gf *ShapeStyle) SetHeight(height float64)

SetHeight set height of shape.

func (*ShapeStyle) SetWidth

func (_cf *ShapeStyle) SetWidth(width float64)

SetWidth set width of shape.

func (*ShapeStyle) String

func (_ecc *ShapeStyle) String() string

ToString formatting ShapeStyle to string.

func (*ShapeStyle) Top

func (_gd *ShapeStyle) Top() float64

Top get top attribute of shape style.

func (*ShapeStyle) Width

func (_ge *ShapeStyle) Width() float64

Width return width of shape.

type TextpathStyle

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

TextpathStyle is style attribute of element v:textpath.

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 (_eb *TextpathStyle) FontFamily() string

FontFamily returns fontFamily of the text.

func (*TextpathStyle) FontSize

func (_adb *TextpathStyle) FontSize() int64

FontSize returns fontSize of the text.

func (*TextpathStyle) IsBold

func (_cc *TextpathStyle) IsBold() bool

IsBold returns true if text is bold.

func (*TextpathStyle) IsItalic

func (_ecf *TextpathStyle) IsItalic() bool

IsItalic returns true if text is italic.

func (*TextpathStyle) SetBold

func (_ed *TextpathStyle) SetBold(bold bool)

SetBold sets text to bold.

func (*TextpathStyle) SetFontFamily

func (_bfd *TextpathStyle) SetFontFamily(fontFamily string)

SetFontFamily sets text's fontFamily.

func (*TextpathStyle) SetFontSize

func (_cbd *TextpathStyle) SetFontSize(fontSize int64)

SetFontSize sets text's fontSize.

func (*TextpathStyle) SetItalic

func (_fde *TextpathStyle) SetItalic(italic bool)

SetItalic sets text to italic.

func (*TextpathStyle) String

func (_bbd *TextpathStyle) String() string

ToString generate string of TextpathStyle.

Jump to

Keyboard shortcuts

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