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.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 |
---|---|---|
System.Double | marginValue | Margin value to set for all margins |
eMeasurementUnits | unit | The unit to set for all margins. Default Points |