Class ExcelControlMargin
Margin setting for a vml drawing
Inheritance
Object
ExcelControlMargin
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: OfficeOpenXml.Drawing.Controls
Assembly: EPPlus.dll
Syntax
public class ExcelControlMargin
Properties
Automatic
Margin is autiomatic
Declaration
public bool Automatic { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
BottomMargin
Bottom margin
Declaration
public ExcelVmlMeasurementUnit BottomMargin { get; }
Property Value
| Type | Description |
|---|---|
| ExcelVmlMeasurementUnit |
LeftMargin
Left Margin
Declaration
public ExcelVmlMeasurementUnit LeftMargin { get; }
Property Value
| Type | Description |
|---|---|
| ExcelVmlMeasurementUnit |
RightMargin
Right Margin
Declaration
public ExcelVmlMeasurementUnit RightMargin { get; }
Property Value
| Type | Description |
|---|---|
| ExcelVmlMeasurementUnit |
TopMargin
Top Margin
Declaration
public ExcelVmlMeasurementUnit TopMargin { get; }
Property Value
| Type | Description |
|---|---|
| ExcelVmlMeasurementUnit |
Methods
SetUnit(eMeasurementUnits)
Sets the margin unit of measurement for all margins.
Declaration
public void SetUnit(eMeasurementUnits unit)
Parameters
| Type | Name | Description |
|---|---|---|
| eMeasurementUnits | unit | The unit to set for all margins. |
SetValue(Double, eMeasurementUnits)
Sets the margin value and unit of measurement for all margins.
Declaration
public void SetValue(double marginValue, eMeasurementUnits unit = eMeasurementUnits.Points)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | marginValue | Margin value to set for all margins |
| eMeasurementUnits | unit | The unit to set for all margins. Default Points |