ChessApplication.ImageGrid Class
Maintans a Grid of images.

Access: Public
Base Classes: UserControl
  Members Description  
    components Required designer variable.

 
    NoImagesSize    
    Selection    
    MouseDownPoint    
    DragStart    
    Images    
    Brushes    
    IsHighlighted    
    LightBrush    
    DarkBrush    
    SelColor    
    HighlighColor    
    SelWidth    
    HasLabels    
    LabelAtTop    
    LabelAtLeft    
    XLabels    
    YLabels    
    RelLabelSize    
    LabelBrush    
    LabelBackgroundBrush    
    ImageGrid Creates a ImageGrid.

 
    GridSize The size of the grid in number of images.

 
    LightBackBrush Set the light brush used as backgound for images at even coordinates sum

 
    DarkBackBrush Set the dark brush used as backgound for images at uneven coordinates sum

 
    BackBrush Set the brush used as backgound.

 
    ForeBrush Set the brush used as foregound.

 
    SelectedImage The Selected Image. To deselect set x or y to less than 0

 
    SelectionColor The Color of the rectangle indicating the Selected Square.

 
    HighlightingColor The Color of the rectangle indicating the highlighted Square.

 
    SelectionLineWidth The Line width of the rectangle indicating the Selected Square.

 
    HasGridLabels Determines if there should be labels for the rows and columns in the grid.

 
    SetXLabelsToTop Sets the x axis labels to be to the top of the grid.

 
    SetXLabelsToBottom Sets the x axis labels to be to the bottom of the grid.

 
    IsXLabelsAtTop Determine where the x axis labels are.

 
    SetYLabelsToLeft Sets the y axis labels to be to the left of the grid.

 
    SetYLabelsToRight Sets the y axis labels to be to the right of the grid.

 
    IsYLabelsAtLeft Determine where the y axis labels are.

 
    SetXLabel Set a label of the x axis.

 
    GetXLabel Get a label of the x axis.

 
    SetYLabel Set a label of the y axis.

 
    GetYLabel Get a label of the y axis.

 
    SetBrush Set the Brush used as background at a specific coordinate.

 
    GetBrush Get the Brush used as background at a specific coordinate.

 
    SetImage Set the Image used at a specific coordinate.

 
    GetImage Get the Image used at a specific coordinate.

 
    ClearImages Clear all the images from the grid

 
    SetHighlight Set wether the image at a specific coordinate.

 
    SetNoneHighlighted Set that no image should be highlighted.

 
    GetHighlight Get the Image used at a specific coordinate.

 
    Dispose Clean up any resources being used.

 
    InitializeComponent Required method for Designer support - do not modify the contents of this method with the code editor.

 
    ChessGrid_Load    
    DrawSquare    
    DrawSelectionRectangle    
    DrawRectangle    
    DrawHighlightRect    
    DrawGridLabels    
    ChessGrid_Paint    
    ChessGrid_Click    
    OnSelect    
    OnUnSelect    
    ConvertScreenToImagePoint    
    DoUnselect Unselect the currently selected image.

 
    ChessGrid_MouseUp    
    ImageGrid_MouseDown    
    ImageGrid_SizeChanged