|
|
|
|
La propiedad Library permite manipular las diferentes bibliotecas predefinidas asociadas a un control Editor de diagramas. Esta propiedad accede al array de bibliotecas del control Editor de diagramas. sFile is string = fTempDir() + [ fSep ] + "custom_library.wddiag" // Creates a library entirely through programming TempLibrary is Diagram D1 is diagOval D1.Width = 50 D1.Height = 50 D1.Background.Color = DarkRed Add(TempLibrary.Shape, D1) D2 is diagOval D2.Width = 50 D2.Height = 70 D2.Background.Color = DarkGreen Add(TempLibrary.Shape, D2) // Use the shapes of the temporary diagram to create the library // Saves the diagram to the disk DiagramSave(TempLibrary, sFile) // Load the diagram as a library MyLibrary is diagLibrary DiagramLoadLibrary(MyLibrary, sFile) MyLibrary.Name = "Custom" // Adds the library to the Diagram Editor control Add(DIAGEDT_Diagram.Library, MyLibrary) ToastDisplay("The custom library has been added to the list.") Sintaxis
Obtener las características de una biblioteca Ocultar los detalles
<Result> = <Diagram Editor control>.Library[<Library index>]
<Result>: Variable de tipo diagLibrary Variable de tipo diagLibrary. Todas las propiedades de las variables de tipo diagLibrary pueden utilizarse. <Diagram Editor control>: Nombre del control Nombre del control Editor de diagramas. <Library index>: Entero Índice de la biblioteca a utilizar.
Cambiar una biblioteca Ocultar los detalles
<Diagram Editor control>.Library[<Library index>] = <New value>
<Diagram Editor control>: Nombre del control Nombre del control Editor de diagramas. <Library index>: Entero Índice de la biblioteca a utilizar. <New value>: Variable de tipo diagLibrary Nombre de la variable diagLibrary a asociar.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|