Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Sets or returns an {{int}} that represents the horizontal distance of the right margin from the right edge of the page for this section. One twip = \(1/20 pt\) or \(1/1440 in\){excerpt}
{signature:C#}
 public int RightMargin{ get; set; }
{signature}{signature:vb.net}
Public Property RightMargin() As Integer
{signature}
{remarks}MS Word equivalent: File menu > Page Setup... > Margins tab > Right: \-\- \(Make sure Apply to: This section is selected\)

{remarks}
{example}{code:csharp|title=C#}

          //--- Return RightMargin
          int rightMargin = oSection.RightMargin;

          //--- Set RightMargin to 1 inch
          oSection.RightMargin = 1440;
        {code}
{code:vb.net|title=vb.net}

          '--- Return RightMargin
          Dim rightMargin As Integer = oSection.RightMargin

          '--- Set RightMargin to 1 inch
          oSection.RightMargin = 1440
        {code}

{example}