public TextProperty LegText2 {get; set;}
public TextProperty LegText2 {get; set;}
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.HpdApiNotInitializedException | Api is not in an initialized state. You can get current state from EPLAN.Harness.API.HpdApi.Status property. If API is uninitialized, you can initialize it by calling EPLAN.Harness.API.HpdApi.Init method. If API is in failed state, you can not resurrect it. |
EPLAN.Harness.API.Exceptions.ObjectInvalidException | The object is in invalid state. Obtain a new one. |
EPLAN.Harness.API.Exceptions.OccurrenceDeletedException | The exception that is thrown when you trying to access to already deleted occurrence. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
OccCdSpiderDiagram spiderDiagram = ... // Get all the possible properties. List<string> names = spiderDiagram.GetPossibleLegTexts(); // Select your favorite property. string name = names.FirstOrDefault(n => n == "Document"); spiderDiagram.LegText2 = new TextProperty(name);
OccCdSpiderDiagram spiderDiagram = ...
spiderDiagram.LegText2 = spiderDiagram.GetPossibleLegTexts().FirstOrDefault(n => n == "Project");
OccCdSpiderDiagram spiderDiagram = ... spiderDiagram.LegText2 = new TextProperty(null); // Or just: // spiderDiagram.LegText2 = null;