SearchForVirtualItemEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / SearchForVirtualItemEventArgs.cs / 1 / SearchForVirtualItemEventArgs.cs

                            using System; 
using System.Drawing;

namespace System.Windows.Forms {
    ///  
    public class SearchForVirtualItemEventArgs : EventArgs {
        private bool isTextSearch; 
        private bool isPrefixSearch; 
        private bool includeSubItemsInSearch;
        private string text; 
        private Point startingPoint;
        private SearchDirectionHint direction;
        private int startIndex;
        private int index = -1; 

        ///  
        public SearchForVirtualItemEventArgs(bool isTextSearch, bool isPrefixSearch, bool includeSubItemsInSearch, string text, Point startingPoint, SearchDirectionHint direction, int startIndex) { 
            this.isTextSearch = isTextSearch;
            this.isPrefixSearch = isPrefixSearch; 
            this.includeSubItemsInSearch = includeSubItemsInSearch;
            this.text = text;
            this.startingPoint = startingPoint;
            this.direction = direction; 
            this.startIndex = startIndex;
        } 
 
        /// 
        public bool IsTextSearch { 
            get  {
                return isTextSearch;
            }
        } 

        ///  
        public bool IncludeSubItemsInSearch { 
            get {
                return includeSubItemsInSearch; 
            }
        }

        ///  
        public int Index {
            get  { 
                return this.index; 
            }
            set 
            {
                this.index = value;
            }
        } 

        ///  
        public bool IsPrefixSearch { 
            get  {
                return isPrefixSearch; 
            }
        }

        ///  
        public string Text{
            get  { 
                return text; 
            }
        } 

        /// 
        public Point StartingPoint {
            get  { 
                return startingPoint;
            } 
        } 

        ///  
        public SearchDirectionHint Direction {
            get  {
                return direction;
            } 
        }
 
        ///  
        public int StartIndex {
            get  { 
                return startIndex;
            }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK