CK.WordPredictor.DefaultKeyboardContextPredictionFactory.RemovePredictionZone C# (CSharp) Method

RemovePredictionZone() public method

public RemovePredictionZone ( IKeyboard keyboard ) : void
keyboard IKeyboard
return void
        public virtual void RemovePredictionZone( IKeyboard keyboard )
        {
            if( keyboard == null ) throw new ArgumentNullException( "keyboard" );

            IZone zone = keyboard.Zones[PredictionKeyboardAndZoneName];
            if( zone != null )
            {
                for( int i = zone.Keys.Count - 1; i >= 0; i-- )
                {
                    zone.Keys[i].Destroy();
                }
                zone.Destroy();
            }
        }