Set the margins of the page in millimeter(mm), inch(in) or point(pt).
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As PdfFile
Dim left As Integer
Dim right As Integer
Dim top As Integer
Dim bottom As Integer
Dim metric As String
instance.SetMargins(left, right, top, bottom,
metric)
Parameters
- left
- Type: SystemInt32
- right
- Type: SystemInt32
- top
- Type: SystemInt32
- bottom
- Type: SystemInt32
- metric (Optional)
- Type: SystemString
Optional metric: mm, in or pt
See Also