Visual Basic, .NET, ASP, VBScript
 

   
   
     

Форум - Общий форум

Страница: 1 |

 

  Вопрос: Форматирование данных в ячейках MSFlexGrid Добавлено: 29.07.04 18:58  

Автор вопроса:  Paul
Подскажите, пожалуйста, как выровнять по центру
или по левому краю значение в ячейках MSFlexGrid.
Числа по-умолчанию лепит с правым равнением.
Как изменить?

Ответить

  Ответы Всего ответов: 1  

Номер ответа: 1
Автор ответа:
 astoro



ICQ: 649109 

Вопросов: 31
Ответов: 391
 Профиль | | #1 Добавлено: 30.07.04 06:51
Returns or sets the alignment of data in a column. This can be a standard column, a column within a band, or a column within a header. This property is not available atdesign time (except indirectly through the FormatString property).

Syntax

object.ColAlignment(number) [=value]
object.ColAlignmentBand(number) [=value]
object.ColAlignmentHeader(number) [=value]

Syntax for the ColAlignment, ColAlignmentBand, and ColAlignmentHeader properties has:

Part Description
object Anobject expression that evaluates to an object in the Applies To list.
number ALong value that specifies the number of the column in the MSHFlexGrid.
value An integer orconstant that specifies the alignment of data in a column, as described in Settings.


Settings

The settings for value are:

Constant Value Description
flexAlignLeftTop 0 The column content is aligned left, top.
flexAlignLeftCenter 1 Default for strings. The column content is aligned left, center.
flexAlignLeftBottom 2 The column content is aligned left, bottom.
flexAlignCenterTop 3 The column content is aligned center, top.
flexAlignCenterCenter 4 The column content is aligned center, center.
flexAlignCenterBottom 5 The column content is aligned center, bottom.
flexAlignRightTop 6 The column content is aligned right, top.
flexAlignRightCenter 7 Default for numbers. The column content is aligned right, center.
flexAlignRightBottom 8 The column content is aligned right, bottom.
flexAlignGeneral 9 The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.

Ответить

Страница: 1 |

Поиск по форуму



© Copyright 2002-2011 VBNet.RU | Пишите нам