PageSetup.TopMargin Property
Returns or sets the distance (in points) between the top edge of the page and the top boundary of the body text.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim pageSetup1 As PageSetup
Dim returnValue As Single
returnValue = pageSetup1.TopMargin
Dim sampleValue As Single
pageSetup1.TopMargin = sampleValue
Syntax
Property TopMargin() As Single
float TopMargin {get; set;}
property Single TopMargin{
Single get();
Void set(Single);
}
public float get_TopMargin();
public void set_TopMargin(float);
function get TopMargin() : float;
function set TopMargin(float);
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
PageSetup Interface
Microsoft.Office.Interop.Word Namespace