Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / SelectedCellsChangedEventArgs.cs / 1305600 / SelectedCellsChangedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; namespace System.Windows.Controls { ////// Communicates which cells were added or removed from the SelectedCells collection. /// public class SelectedCellsChangedEventArgs : EventArgs { ////// Creates a new instance of this class. /// /// The cells that were added. Must be non-null, but may be empty. /// The cells that were removed. Must be non-null, but may be empty. public SelectedCellsChangedEventArgs(ListaddedCells, List removedCells) { if (addedCells == null) { throw new ArgumentNullException("addedCells"); } if (removedCells == null) { throw new ArgumentNullException("removedCells"); } _addedCells = addedCells.AsReadOnly(); _removedCells = removedCells.AsReadOnly(); } /// /// Creates a new instance of this class. /// /// The cells that were added. Must be non-null, but may be empty. /// The cells that were removed. Must be non-null, but may be empty. public SelectedCellsChangedEventArgs(ReadOnlyCollectionaddedCells, ReadOnlyCollection removedCells) { if (addedCells == null) { throw new ArgumentNullException("addedCells"); } if (removedCells == null) { throw new ArgumentNullException("removedCells"); } _addedCells = addedCells; _removedCells = removedCells; } internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells) { _addedCells = (addedCells != null) ? addedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner); _removedCells = (removedCells != null) ? removedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner); Debug.Assert(_addedCells.IsReadOnly, "_addedCells should have ended up as read-only."); Debug.Assert(_removedCells.IsReadOnly, "_removedCells should have ended up as read-only."); } /// /// The cells that were added. /// public IListAddedCells { get { return _addedCells; } } /// /// The cells that were removed. /// public IListRemovedCells { get { return _removedCells; } } private IList _addedCells; private IList _removedCells; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BrushMappingModeValidation.cs
- HttpDictionary.cs
- ReachPageContentSerializer.cs
- NameValueSectionHandler.cs
- BehaviorEditorPart.cs
- GlyphShapingProperties.cs
- hresults.cs
- ApplicationInterop.cs
- WindowsTitleBar.cs
- AudioSignalProblemOccurredEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- RawUIStateInputReport.cs
- InstallerTypeAttribute.cs
- CustomPopupPlacement.cs
- DataTemplate.cs
- DataListComponentEditor.cs
- SchemaImporterExtensionElement.cs
- XmlRawWriter.cs
- DesignerCatalogPartChrome.cs
- RijndaelManaged.cs
- WebBrowser.cs
- DifferencingCollection.cs
- SortDescription.cs
- XMLDiffLoader.cs
- TypedTableBase.cs
- DataGridCell.cs
- PassportAuthenticationModule.cs
- RelationshipDetailsRow.cs
- CodeTypeDeclarationCollection.cs
- ProfileModule.cs
- CurrencyManager.cs
- SqlServer2KCompatibilityCheck.cs
- HitTestParameters3D.cs
- Literal.cs
- DaylightTime.cs
- MetricEntry.cs
- ScriptingRoleServiceSection.cs
- TitleStyle.cs
- EventManager.cs
- ContractUtils.cs
- SQLBytes.cs
- StatusBar.cs
- WmpBitmapDecoder.cs
- AsymmetricSignatureDeformatter.cs
- TextBoxLine.cs
- EntityClientCacheKey.cs
- BufferedGraphicsContext.cs
- VectorAnimation.cs
- ViewManager.cs
- ListViewCommandEventArgs.cs
- XmlSchemaCollection.cs
- _Rfc2616CacheValidators.cs
- ObjectSet.cs
- WorkflowNamespace.cs
- XslAstAnalyzer.cs
- webeventbuffer.cs
- ExpressionBuilderCollection.cs
- GeometryModel3D.cs
- SmiConnection.cs
- ListBoxItemAutomationPeer.cs
- CreateDataSourceDialog.cs
- StaticFileHandler.cs
- CrossSiteScriptingValidation.cs
- SecurityContext.cs
- MultiDataTrigger.cs
- GuidelineCollection.cs
- XmlSchemaSimpleContentExtension.cs
- HttpStreamXmlDictionaryWriter.cs
- DocumentOrderComparer.cs
- ISFTagAndGuidCache.cs
- basemetadatamappingvisitor.cs
- ELinqQueryState.cs
- ConfigurationSectionGroup.cs
- SqlDataRecord.cs
- XPathNavigatorReader.cs
- PolyBezierSegmentFigureLogic.cs
- ExceptionTranslationTable.cs
- FixUp.cs
- ColumnWidthChangedEvent.cs
- HostingEnvironmentSection.cs
- DbProviderServices.cs
- DataTablePropertyDescriptor.cs
- AttributeData.cs
- Point3D.cs
- SafeMarshalContext.cs
- WriteTimeStream.cs
- SecurityResources.cs
- WebPartCatalogAddVerb.cs
- ConnectionPool.cs
- SelectionPattern.cs
- MeshGeometry3D.cs
- XmlTextReaderImpl.cs
- StickyNoteHelper.cs
- TextPenaltyModule.cs
- _RequestLifetimeSetter.cs
- ContextMenu.cs
- IndexOutOfRangeException.cs
- ClientSettingsSection.cs
- RangeValuePattern.cs
- TrustLevel.cs