API Help
Eplan.EplApi.ApplicationFramework Namespace / IEplActionChecked Interface
Members Example

In This Topic
    IEplActionChecked Interface
    In This Topic
    Interface to switch the status on / off of an Action. If this interface is not used, the Action is off by default. If you implement this interface in an action class, you can set the state of the respective Action to on. If 0, unchecks; if 1, checks; and if 2, sets indeterminate.
    Syntax
    public interface IEplActionChecked 
    public interface class IEplActionChecked 
    Example
    public class TestAction : Eplan.EplApi.ApplicationFramework.IEplAction, Eplan.EplApi.ApplicationFramework.IEplActionChecked
        {
            //IEplAction Members
    
            \#region IEplActionChecked Members
    
            public int Checked(string strActionName, Eplan.EplApi.ApplicationFramework.ActionCallingContext actionContext)
            {
                if (strActionName == "TESTACTIONMIXED")
                {
                    return 2;
                } 
    			else if (strActionName == "TESTACTION")
                {
                    return 1;
                }
                else 
                {
                    return 0;
                }
    
            }
    
            \#endregion
        }
    Public Methods
     NameDescription
     MethodOne action can have the state on off or mixed. Return 0 for off, 1 for on, and 2 for mixed.  
    Top
    See Also