IWxWorkspace.Name

Syntax

Name: String;

Name: string;

Description

The Name property determines a workspace name.

Example

Executing the example requires that repository contains a workspace with the WSP identifier.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub  Userproc;
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
Begin
    
// Get workspace
    mb := MetabaseClass.Active;
    wsp := mb.ItemById(
"WSP").Edit As  IWxWorkspace;
    wsp.Name := 
"WSP1";
    wsp.Size := New  GxSizeF.Create(
100,  100);
    (wsp As  IMetabaseObject).Save;
End  Sub  Userproc;
Imports Prognoz.Platform.Interop.Andy;
Imports Prognoz.Platform.Interop.Drawing;

 
Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    wsp: IWxWorkspace;
Begin
    
// Get workspace
    mb := Params.Metabase;
    wsp := mb.ItemById[
"WSP"].Edit() As IWxWorkspace;
    wsp.Name := 
"WSP1";
    wsp.Size.Create(
100100);
    (wsp 
As IMetabaseObject).Save();
End Sub;

After executing the example a workspace name and size are changed.

See also:

IWxWorkspace