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
- SmiMetaDataProperty.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartMinimizeVerb.cs
- XmlSchemaComplexContent.cs
- HttpHandler.cs
- DateTimeUtil.cs
- SyndicationDeserializer.cs
- AdjustableArrowCap.cs
- XamlReader.cs
- SQLInt32Storage.cs
- NotifyCollectionChangedEventArgs.cs
- ApplicationServiceHelper.cs
- DataGridView.cs
- AuthenticationService.cs
- SQLGuidStorage.cs
- SafeRightsManagementHandle.cs
- XmlSchemas.cs
- DataGridRowDetailsEventArgs.cs
- TimeoutHelper.cs
- ACE.cs
- FileUtil.cs
- ListChunk.cs
- FileDialogPermission.cs
- CompositeScriptReferenceEventArgs.cs
- CodeDomSerializer.cs
- MethodAccessException.cs
- DocumentPageTextView.cs
- DispatchChannelSink.cs
- TablePatternIdentifiers.cs
- MetadataFile.cs
- BrowserCapabilitiesFactory.cs
- DirectionalLight.cs
- RegexWriter.cs
- WebPartMenuStyle.cs
- ComboBoxAutomationPeer.cs
- NameValueCollection.cs
- GenericEnumConverter.cs
- WebEncodingValidatorAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- ControlValuePropertyAttribute.cs
- StringBuilder.cs
- XmlSchemaAnnotation.cs
- TemplateFactory.cs
- XmlIlVisitor.cs
- TimeoutConverter.cs
- InstalledFontCollection.cs
- ClientSideProviderDescription.cs
- NetworkInformationException.cs
- ActiveXHost.cs
- EditorZoneBase.cs
- SatelliteContractVersionAttribute.cs
- FileCodeGroup.cs
- TabPanel.cs
- ActivityCollectionMarkupSerializer.cs
- EntitySetBaseCollection.cs
- PersonalizableAttribute.cs
- Compiler.cs
- RestHandler.cs
- LineBreak.cs
- MobileControlsSection.cs
- ScopelessEnumAttribute.cs
- DLinqTableProvider.cs
- PingOptions.cs
- LayoutInformation.cs
- GatewayIPAddressInformationCollection.cs
- SparseMemoryStream.cs
- DefaultAssemblyResolver.cs
- MimeTypeAttribute.cs
- StrokeFIndices.cs
- RtType.cs
- RemotingHelper.cs
- WindowsListViewSubItem.cs
- RemotingConfigParser.cs
- ExtendedPropertyDescriptor.cs
- SemanticValue.cs
- DataTableMappingCollection.cs
- SecurityContext.cs
- PageThemeParser.cs
- QueuedDeliveryRequirementsMode.cs
- ZipIOExtraFieldElement.cs
- PathStreamGeometryContext.cs
- MruCache.cs
- MsmqBindingMonitor.cs
- DataGridItemCollection.cs
- SourceFileInfo.cs
- Tracer.cs
- StringResourceManager.cs
- StringReader.cs
- PlanCompilerUtil.cs
- TagPrefixInfo.cs
- ConfigurationElement.cs
- DSASignatureFormatter.cs
- EncodingStreamWrapper.cs
- LockedActivityGlyph.cs
- NonSerializedAttribute.cs
- HtmlInputHidden.cs
- HtmlButton.cs
- CompositeTypefaceMetrics.cs
- RefreshPropertiesAttribute.cs
- SmiXetterAccessMap.cs