Class ExcelControlMargin
Margin setting for a vml drawing
Inheritance
System.Object
ExcelControlMargin
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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 |
---|---|
System. |
BottomMargin
Bottom margin
Declaration
public ExcelVmlMeasurementUnit BottomMargin { get; }
Property Value
Type | Description |
---|---|
Excel |
LeftMargin
Left Margin
Declaration
public ExcelVmlMeasurementUnit LeftMargin { get; }
Property Value
Type | Description |
---|---|
Excel |
RightMargin
Right Margin
Declaration
public ExcelVmlMeasurementUnit RightMargin { get; }
Property Value
Type | Description |
---|---|
Excel |
TopMargin
Top Margin
Declaration
public ExcelVmlMeasurementUnit TopMargin { get; }
Property Value
Type | Description |
---|---|
Excel |
Methods
SetUnit(eMeasurementUnits)
Sets the margin unit of measurement for all margins.
Declaration
public void SetUnit(eMeasurementUnits unit)
Parameters
Type | Name | Description |
---|---|---|
e |
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 |
---|---|---|
System. |
marginValue | Margin value to set for all margins |
e |
unit | The unit to set for all margins. Default Points |