Saltar para o conteúdo principal
Versão: Próximo

VP SET COLUMN ATTRIBUTES

VP SET COLUMN ATTRIBUTES ( rangeObj : Object ; propertyObj : Object)

ParâmetroTipoDescrição
rangeObjObject->Objeto intervalo
propertyObjObject->Object containing column properties

Descrição

The VP SET COLUMN ATTRIBUTES command applies the attributes defined in the propertyObj to the columns in the rangeObj.

In rangeObj, pass an object containing a range. If the range contains both columns and rows, attributes are applied only to the columns.

The propertyObj parameter lets you specify the attributes to apply to the columns in the rangeObj. Estes atributos são:

PropriedadeTipoDescrição
widthnumberLargura da coluna expressa em píxeis
pageBreakbooleanTrue para inserir uma quebra de página antes da primeira coluna do intervalo, senão false
visiblebooleanTrue se a coluna for visível, senão false
resizablebooleanTrue se a coluna puder ser redimensionada, senão false
headertextTexto do cabeçalho da coluna

Exemplo

Para alterar o tamanho da segunda coluna e definir o cabeçalho, escreve-se:

C_OBJECT($column;$properties)

$column:=VP Column("ViewProArea";1) //column B
$properties:=New object("width";100;"header";"Hello World")

VP SET COLUMN ATTRIBUTES($column;$properties)

Veja também

VP Column
VP Get column attributes
VP Get row attributes
VP SET ROW ATTRIBUTES