unioffice: github.com/unidoc/unioffice/drawing Index | Files

package drawing

import "github.com/unidoc/unioffice/drawing"

Index

Package Files

lineproperties.go paragraph.go paragraphproperties.go run.go runproperties.go shapeproperties.go

type LineJoin Uses

type LineJoin byte

LineJoin is the type of line join

const (
    LineJoinRound LineJoin = iota
    LineJoinBevel
    LineJoinMiter
)

LineJoin types

type LineProperties Uses

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

func (LineProperties) SetJoin Uses

func (l LineProperties) SetJoin(e LineJoin)

SetJoin sets the line join style.

func (LineProperties) SetNoFill Uses

func (l LineProperties) SetNoFill()

func (LineProperties) SetSolidFill Uses

func (l LineProperties) SetSolidFill(c color.Color)

func (LineProperties) SetWidth Uses

func (l LineProperties) SetWidth(w measurement.Distance)

SetWidth sets the line width, MS products treat zero as the minimum width that can be displayed.

func (LineProperties) X Uses

func (l LineProperties) X() *dml.CT_LineProperties

X returns the inner wrapped XML type.

type Paragraph Uses

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

Paragraph is a paragraph within a document.

func MakeParagraph Uses

func MakeParagraph(x *dml.CT_TextParagraph) Paragraph

MakeParagraph constructs a new paragraph wrapper.

func (Paragraph) AddBreak Uses

func (p Paragraph) AddBreak()

AddBreak adds a new line break to a paragraph.

func (Paragraph) AddRun Uses

func (p Paragraph) AddRun() Run

AddRun adds a new run to a paragraph.

func (Paragraph) Properties Uses

func (p Paragraph) Properties() ParagraphProperties

Properties returns the paragraph properties.

func (Paragraph) X Uses

func (p Paragraph) X() *dml.CT_TextParagraph

X returns the inner wrapped XML type.

type ParagraphProperties Uses

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

ParagraphProperties allows controlling paragraph properties.

func MakeParagraphProperties Uses

func MakeParagraphProperties(x *dml.CT_TextParagraphProperties) ParagraphProperties

MakeParagraphProperties constructs a new ParagraphProperties wrapper.

func (ParagraphProperties) SetAlign Uses

func (p ParagraphProperties) SetAlign(a dml.ST_TextAlignType)

SetAlign controls the paragraph alignment

func (ParagraphProperties) SetBulletChar Uses

func (p ParagraphProperties) SetBulletChar(c string)

SetBulletChar sets the bullet character for the paragraph.

func (ParagraphProperties) SetBulletFont Uses

func (p ParagraphProperties) SetBulletFont(f string)

SetBulletFont controls the font for the bullet character.

func (ParagraphProperties) SetLevel Uses

func (p ParagraphProperties) SetLevel(idx int32)

SetLevel sets the level of indentation of a paragraph.

func (ParagraphProperties) SetNumbered Uses

func (p ParagraphProperties) SetNumbered(scheme dml.ST_TextAutonumberScheme)

SetNumbered controls if bullets are numbered or not.

func (ParagraphProperties) X Uses

func (p ParagraphProperties) X() *dml.CT_TextParagraphProperties

X returns the inner wrapped XML type.

type Run Uses

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

Run is a run within a paragraph.

func MakeRun Uses

func MakeRun(x *dml.EG_TextRun) Run

MakeRun constructs a new Run wrapper.

func (Run) Properties Uses

func (r Run) Properties() RunProperties

Properties returns the run's properties.

func (Run) SetText Uses

func (r Run) SetText(s string)

SetText sets the run's text contents.

func (Run) X Uses

func (r Run) X() *dml.EG_TextRun

X returns the inner wrapped XML type.

type RunProperties Uses

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

RunProperties controls the run properties.

func MakeRunProperties Uses

func MakeRunProperties(x *dml.CT_TextCharacterProperties) RunProperties

MakeRunProperties constructs a new RunProperties wrapper.

func (RunProperties) SetBold Uses

func (r RunProperties) SetBold(b bool)

SetBold controls the bolding of a run.

func (RunProperties) SetFont Uses

func (r RunProperties) SetFont(s string)

SetFont controls the font of a run.

func (RunProperties) SetSize Uses

func (r RunProperties) SetSize(sz measurement.Distance)

SetSize sets the font size of the run text

func (RunProperties) SetSolidFill Uses

func (r RunProperties) SetSolidFill(c color.Color)

SetSolidFill controls the text color of a run.

type ShapeProperties Uses

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

func MakeShapeProperties Uses

func MakeShapeProperties(x *dml.CT_ShapeProperties) ShapeProperties

func (ShapeProperties) LineProperties Uses

func (s ShapeProperties) LineProperties() LineProperties

func (ShapeProperties) SetFlipHorizontal Uses

func (s ShapeProperties) SetFlipHorizontal(b bool)

SetFlipHorizontal controls if the shape is flipped horizontally.

func (ShapeProperties) SetFlipVertical Uses

func (s ShapeProperties) SetFlipVertical(b bool)

SetFlipVertical controls if the shape is flipped vertically.

func (ShapeProperties) SetGeometry Uses

func (s ShapeProperties) SetGeometry(g dml.ST_ShapeType)

SetGeometry sets the shape type of the shape

func (ShapeProperties) SetHeight Uses

func (s ShapeProperties) SetHeight(h measurement.Distance)

SetHeight sets the height of the shape.

func (ShapeProperties) SetNoFill Uses

func (s ShapeProperties) SetNoFill()

func (ShapeProperties) SetPosition Uses

func (s ShapeProperties) SetPosition(x, y measurement.Distance)

SetPosition sets the position of the shape.

func (ShapeProperties) SetSize Uses

func (s ShapeProperties) SetSize(w, h measurement.Distance)

SetSize sets the width and height of the shape.

func (ShapeProperties) SetSolidFill Uses

func (s ShapeProperties) SetSolidFill(c color.Color)

func (ShapeProperties) SetWidth Uses

func (s ShapeProperties) SetWidth(w measurement.Distance)

SetWidth sets the width of the shape.

func (ShapeProperties) X Uses

func (s ShapeProperties) X() *dml.CT_ShapeProperties

X returns the inner wrapped XML type.

Package drawing imports 4 packages (graph) and is imported by 4 packages. Updated 2019-05-23. Refresh now. Tools for package owners.