Travailler avec la protection

Set Protection du Visio Diagram

Protecting diagrams allow users to lock backgrounds, masters (stencils), shapes and styles so that they cannot be edited. This is useful for protecting corporate styles, for example, and ensure a consistent look across a set of diagrams. Developers can achieve this using Aspose.Diagram for Python via Java.

Modifier la protection du Visio Diagram

Les méthodes getProtectBkgnds, getProtectMasters, getProtectShapes et getProtectStyles, exposées par la classe DocumentSettings prennent en charge l’objet BoolValue. Ces propriétés peuvent être utilisées pour protéger et déprotéger les diagrammes Microsoft Visio.

Au Microsoft Visio vous protégez les documents de cette manière :

  1. Ouvrez un diagram au Microsoft Visio.
  2. Ouvrez la fenêtre de l’explorateur de dessins.
  3. Faites un clic droit sur un diagram et sélectionnezProtéger le document du menu.
  4. Dans la fenêtre Protéger le document, cochez ou décochez les options pour verrouiller ou déverrouiller différents éléments diagram.
  5. Cliquez surD’ACCORD.

Veuillez voir comment nous pouvons vérifier ou effacer les options manuellement.

Use the code below in your application to perform the same tasks – lock and unlock different elements of your diagram – using Aspose.Diagram for Python via Java.

Modifier la protection de forme Visio

Protecting Visio shapes allow users to lock specific aspects of shapes. Aspects of shapes that can be locked through shape protection include width, height, x-position, y-position, rotation and more. Developers can achieve this using Aspose.Diagram for Python via Java.

LagetLockAspect(), getLockBegin(), getLockCalcWH(), getLockCrop(), getLockCustProp(), getLockDelete(), getLockEnd(), getLockFormat(), getLockFromGroupFormat(), getLockGroup(), getLockHeight(), getLockMoveX(), getLockMoveY(), getLockRotate(), getLockSelect(), getLockTextEdit(), getLockThemeColors(), getLockThemeEffects(), getLockVtxEdit() etgetLockWidth() méthodes exposées par leprotection prend en charge l’objet BoolValue. Ces méthodes peuvent être utilisées pour protéger/déprotéger des formes.

Dans Visio, vous devez effectuer les actions suivantes pour protéger n’importe quelle forme :

  1. Ouvrez un diagram au Microsoft Visio.
  2. Sélectionnez une forme.
  3. Sélectionnerprotection duFormat menu (Visio 2007), ou sélectionnezprotection duDéveloppeur menus (Visio 2010).
  4. Dans leprotection fenêtre, sélectionnez ou désélectionnez les options pour verrouiller ou déverrouiller l’attribut de forme.
  5. Cliquez surD’ACCORD.

Les options de protection d’une forme, comme on le voit dans Microsoft Visio

Use the following code in your Java application to do the same thing (lock/unlock any shape attribute) using Aspose.Diagram for Python via Java.