public TextProperty LegText1 {get; set;}
public TextProperty LegText1 {get; set;}
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.HpdApiNotInitializedException | Api is not in an initialized state. You can get current state from Status property. If API is uninitialized, you can initialize it by calling Init(String,String[]) 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.LegText1 = new TextProperty(name);
OccCdSpiderDiagram spiderDiagram = ...
spiderDiagram.LegText1 = spiderDiagram.GetPossibleLegTexts().FirstOrDefault(n => n == "Project");
OccCdSpiderDiagram spiderDiagram = ... spiderDiagram.LegText1 = new TextProperty(null); // Or just: // spiderDiagram.LegText1 = null;