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 whether or not the data of the worksheet is centered horizontally within the margins. This is is set to false by default.

_(This is not supported for charts.)_
{excerpt}
{signature:C#}
 public boolean CenterHorizontally{ get; set; }
{signature}{signature:vb.net}
Public Property CenterHorizontally() As Boolean
{signature}
{example}{code:csharp|title=C#}

          //--- Get CenterHorizontally
          bool centerHoriz = ps.CenterHorizontally

          //--- Set CenterHorizontally
          ps.CenterHorizontally = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Get CenterHorizontally
          Dim centerHoriz As Boolean = ps.CenterHorizontally

          '--- Set CenterHorizontally
          ps.CenterHorizontally = True
        {code}

{example}