Skip to content

Class ExcelControlMargin

Namespace: OfficeOpenXml.Drawing.Controls
Assembly: EPPlus.dll

Margin setting for a vml drawing

public class ExcelControlMargin

Inheritance

object ← ExcelControlMargin

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Properties

Automatic

Margin is autiomatic

public bool Automatic { get; set; }

Property Value

bool

BottomMargin

Bottom margin

public ExcelVmlMeasurementUnit BottomMargin { get; }

Property Value

ExcelVmlMeasurementUnit

LeftMargin

Left Margin

public ExcelVmlMeasurementUnit LeftMargin { get; }

Property Value

ExcelVmlMeasurementUnit

RightMargin

Right Margin

public ExcelVmlMeasurementUnit RightMargin { get; }

Property Value

ExcelVmlMeasurementUnit

TopMargin

Top Margin

public ExcelVmlMeasurementUnit TopMargin { get; }

Property Value

ExcelVmlMeasurementUnit

Methods

SetUnit(eMeasurementUnits)

Sets the margin unit of measurement for all margins.

public void SetUnit(eMeasurementUnits unit)

Parameters

unit eMeasurementUnits

The unit to set for all margins.

SetValue(double, eMeasurementUnits)

Sets the margin value and unit of measurement for all margins.

public void SetValue(double marginValue, eMeasurementUnits unit = eMeasurementUnits.Points)

Parameters

marginValue double

Margin value to set for all margins

unit eMeasurementUnits

The unit to set for all margins. Default Points