Templates

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

This collection contains the defined templates. Each picture is linked to a template, which holds general settings as the position, the name, ...
The templates of the global project are also available in this collection.
The single templates can be found in the collection by their unique names or their indices. Each template has to have a unique name.

Properties:Top

Count Parent  

Methods:Top

Create Delete DynPropertiesEnum[GET]
DynProperties[GET] DynProperties[PUT] Export
Import Item  

Samples:Top

'Procedure to create a new template in the active project.


	'!Only Editor!

	Public Sub CreateTemplate()

	Dim zTMP As Template



		Set zTMP = MyWorkspace.ActiveDocument.Templates.Create("tmp_MAIN", True)

		With zTMP

			.Top = 0

			.Left = 0

			.Right = 1024

			.Bottom = 768

			.BackgroundColor = vbWhite

		End With

	End Sub

	


	'Procedure to get list of the templates inthe active project.

	'>thisProject< instead of >Myworkspace.ActiveDocument< when using the code at Runtime

	'!Editor and Runtime!

	Public Sub TemplateList()

	Dim strTemplates As String

	Dim i As Integer

		For i = 0 To MyWorkspace.ActiveDocument.Templates.Count - 1

			strTemplates = strTemplates & MyWorkspace.ActiveDocument.Templates.Item(i).Name & vbCrLf

		Next i

		MsgBox strTemplates

	End Sub