AnimationDeveloperSamples.MapGraphicKeyframe.set_IsActiveProperty C# (CSharp) Method

set_IsActiveProperty() public method

public set_IsActiveProperty ( int propIndex, bool pbIsActiveProp ) : void
propIndex int
pbIsActiveProp bool
return void
        public void set_IsActiveProperty(int propIndex, bool pbIsActiveProp)
        {
            if (pbIsActiveProp)
            {
                if (get_IsActiveProperty(propIndex) == false)
                {
                    activeProps.Add(propIndex);
                }
            }
            else
            {
                if (get_IsActiveProperty(propIndex) == true)
                {
                    int i = 0;
                    int count = activeProps.Count;
                    for (i = 0; i < count; i++)
                    {
                        long temp = activeProps.get_Element(i);
                        if (temp == propIndex)
                            break;
                    }

                    activeProps.Remove(i);
                }
            }          
        }
        public string Name