Aller au contenu principal
Version: Next

VP SHOW CELL

VP SHOW CELL ( rangeObj : Object { ; vPos : Integer; hPos : Integer } )

ParamètresTypeDescription
rangeObjObject->Objet plage
vPosInteger->Position verticale de la vue de la cellule ou de la ligne
hPosInteger->Position horizontale de la vue de la cellule ou de la ligne

Description

The VP SHOW CELL command vertically and horizontally repositions the view of the rangeObj.

In rangeObj, pass a range of cells as an object to designate the cells to be viewed. The view of the rangeObj will be positioned vertically or horizontally (i.e., where rangeObj appears) based on the vPos and hPos parameters. The vPos parameter defines the desired vertical position to display the rangeObj, and the hPos parameter defines the desired horizontal position to display the rangeObj.

Les sélecteurs suivants sont disponibles :

SélecteurDescriptionAvailable with vPosAvailable with hPos
vk position bottomAlignement vertical vers le bas de la cellule ou de la ligne.X
vk position centerAlignement vers le centre. The alignment will be to the cell, row, or column limit according to the view position indicated:
  • Vertical view position - cell or row
  • Horizontal view position - cell or column
  • XX
    vk position leftAlignement horizontal vers la gauche de la cellule ou de la colonneX
    vk position nearestAlignement vers la limite la plus proche (haut, bas, gauche, droite, centre). The alignment will be to the cell, row, or column limit according to the view position indicated:
  • Vertical view position (top, center, bottom) - cell or row
  • Horizontal view position (left, center, right) - cell or column
  • XX
    vk position rightAlignement horizontal vers la droite de la cellule ou de la colonneX
    vk position topAlignement vertical vers le haut de la cellule ou de la ligneX

    Cette commande n'est efficace que si le repositionnement de la vue est possible. For example, if the rangeObj is in cell A1 (the first column and the first row) of the current sheet, repositioning the view will make no difference because the vertical and horizontal limits have already been reached (i.e., it is not possible to scroll any higher or any more to the left). The same is true if rangeObj is in cell C3 and the view is repositioned to the center or the bottom right. La vue demeure inchangée.

    Exemple

    Vous souhaitez visualiser la cellule dans la colonne AY, ligne 51, au centre de la zone 4D View Pro.

    $displayCell:=VP Cell("myVPArea";50;50)
    // Déplacez la vue pour afficher la cellule
    VP SHOW CELL($displayCell;vk position center;vk position center)

    Résultat:

    Le même code ainsi que les sélecteurs verticaux et horizontaux ont été modifiés pour afficher la même cellule en haut à droite de la zone 4D View Pro :

    $displayCell:=VP Cell("myVPArea";50;50)
    // Déplacez la vue pour afficher la cellule
    VP SHOW CELL($displayCell;vk position top;vk position right)

    Résultat:

    Voir également

    VP Cell
    VP Get active cell
    VP Get selection
    VP RESET SELECTION
    VP SET ACTIVE CELL
    VP SET SELECTION