Page 1 of 1

Wraptext and BorderTopStyle

Posted: Mon Dec 01, 2014 3:45 pm
by etwoss
Hi

Changed all old code to cmdFormat code except:

Code: Select all

      R := FSheet.Range.Items[FFirstColumn + i, FCurrentRow, FFirstColumn + i, FCurrentRow];
      R.WrapText := True;
      R.VertAlignment := cvaTop;

      R := FSheet.Range.Items[FFirstColumn + i, FCurrentRow, FFirstColumn + i, FCurrentRow];
      R.BorderTopStyle := cbsThin;
      R.BorderTopColor := clBlack;
How can i do this using cmdFormat. Could not find it in example

Eric

Re: Wraptext and BorderTopStyle

Posted: Fri Dec 05, 2014 9:05 am
by larsa
Hello

Example

Code: Select all

  XLS.CmdFormat.Alignment.WrapText := True;
  XLS.CmdFormat.Alignment.Vertical := cvaTop;
FormatCells sample explains how to format borders.