libsbml.Compartment.setCompartmentType C# (CSharp) Method

setCompartmentType() public method

public setCompartmentType ( string sid ) : int
sid string
return int
        public int setCompartmentType(string sid)
        {
            int ret = libsbmlPINVOKE.Compartment_setCompartmentType(swigCPtr, sid);
            return ret;
        }

Usage Example

 public void test_Compartment_setCompartmentType2()
 {
     Compartment c = new  Compartment(2,2);
       int i = c.setCompartmentType( "1cell");
       assertTrue( i == libsbml.LIBSBML_INVALID_ATTRIBUTE_VALUE );
       assertEquals( false, c.isSetCompartmentType() );
       i = c.unsetCompartmentType();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertEquals( false, c.isSetCompartmentType() );
       c = null;
 }
All Usage Examples Of libsbml.Compartment::setCompartmentType