Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Annotations / Storage / StoreContentChangedEventArgs.cs / 1305600 / StoreContentChangedEventArgs.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The AnnotationStore.StoreContentChanged event is generated when any // changes are made to an annotation in an AnnotationStore. // // File contains the StoreContentChangedEventArgs class, the // AnnotationStoreEnum and the StoreContentChangedEventHandler delegate. // Spec: http://team/sites/ag/Specifications/CAF%20Storage%20Spec.doc // // History: // 07/10/2003: rruiz: Created (split from AnnotationStore.cs file). // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Xml; namespace System.Windows.Annotations.Storage { ////// Event handler delegate for AnnotationUpdated event. Listeners for /// this event must supply a delegate with this signature. /// /// AnnotationStore in which the change took place /// the event data public delegate void StoreContentChangedEventHandler(object sender, StoreContentChangedEventArgs e); ////// Possible actions performed on an IAnnotation in an AnnotationStore. /// public enum StoreContentAction { ////// Annotation was added to the store /// Added, ////// Annotation was deleted from the store /// Deleted } ////// The AnnotationUpdated event is generated when any changes are made /// to an annotation in an AnnotationStore. An instance of this class /// specifies the action that was taken and the IAnnotation that was /// acted upon. /// public class StoreContentChangedEventArgs : System.EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Creates an instance of AnnotationUpdatedEventArgs with the /// specified action and annotation. /// /// the action that was performed on an annotation /// the annotation that was updated public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); _action = action; _annotation = annotation; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Operators // //------------------------------------------------------ //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties ////// Returns the IAnnotation that was updated. /// public Annotation Annotation { get { return _annotation; } } ////// Returns the action that was performed on the annotation. /// public StoreContentAction Action { get { return _action; } } #endregion Public Properties //----------------------------------------------------- // // Public Events // //----------------------------------------------------- //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private StoreContentAction _action; // action taken on the annotation private Annotation _annotation; // annotation that was updated #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // The AnnotationStore.StoreContentChanged event is generated when any // changes are made to an annotation in an AnnotationStore. // // File contains the StoreContentChangedEventArgs class, the // AnnotationStoreEnum and the StoreContentChangedEventHandler delegate. // Spec: http://team/sites/ag/Specifications/CAF%20Storage%20Spec.doc // // History: // 07/10/2003: rruiz: Created (split from AnnotationStore.cs file). // //----------------------------------------------------------------------------- using System; using System.Collections; using System.Xml; namespace System.Windows.Annotations.Storage { ////// Event handler delegate for AnnotationUpdated event. Listeners for /// this event must supply a delegate with this signature. /// /// AnnotationStore in which the change took place /// the event data public delegate void StoreContentChangedEventHandler(object sender, StoreContentChangedEventArgs e); ////// Possible actions performed on an IAnnotation in an AnnotationStore. /// public enum StoreContentAction { ////// Annotation was added to the store /// Added, ////// Annotation was deleted from the store /// Deleted } ////// The AnnotationUpdated event is generated when any changes are made /// to an annotation in an AnnotationStore. An instance of this class /// specifies the action that was taken and the IAnnotation that was /// acted upon. /// public class StoreContentChangedEventArgs : System.EventArgs { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Creates an instance of AnnotationUpdatedEventArgs with the /// specified action and annotation. /// /// the action that was performed on an annotation /// the annotation that was updated public StoreContentChangedEventArgs(StoreContentAction action, Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); _action = action; _annotation = annotation; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Operators // //------------------------------------------------------ //----------------------------------------------------- // // Public Properties // //------------------------------------------------------ #region Public Properties ////// Returns the IAnnotation that was updated. /// public Annotation Annotation { get { return _annotation; } } ////// Returns the action that was performed on the annotation. /// public StoreContentAction Action { get { return _action; } } #endregion Public Properties //----------------------------------------------------- // // Public Events // //----------------------------------------------------- //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private StoreContentAction _action; // action taken on the annotation private Annotation _annotation; // annotation that was updated #endregion Private Fields } } // 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
- MenuItemCollection.cs
- _BufferOffsetSize.cs
- PageCatalogPart.cs
- GifBitmapDecoder.cs
- VolatileEnlistmentState.cs
- LinearKeyFrames.cs
- AppSecurityManager.cs
- FlowDocumentFormatter.cs
- DBConcurrencyException.cs
- TypedTableBaseExtensions.cs
- CssClassPropertyAttribute.cs
- ExtendedPropertyDescriptor.cs
- SecurityTokenProvider.cs
- ToolStripOverflow.cs
- UpdateCommand.cs
- AddingNewEventArgs.cs
- WorkflowMarkupSerializationException.cs
- ToolboxBitmapAttribute.cs
- ComAdminWrapper.cs
- Soap.cs
- InheritanceAttribute.cs
- Section.cs
- ThemeInfoAttribute.cs
- Constraint.cs
- DBCommandBuilder.cs
- _AcceptOverlappedAsyncResult.cs
- XsdDuration.cs
- ViewPort3D.cs
- QilStrConcat.cs
- TextParagraph.cs
- StylusCollection.cs
- TreeViewImageIndexConverter.cs
- PerfCounters.cs
- ScriptBehaviorDescriptor.cs
- BasicKeyConstraint.cs
- RtfToXamlLexer.cs
- Int64AnimationBase.cs
- AuthorizationContext.cs
- __ComObject.cs
- ComboBoxAutomationPeer.cs
- WindowsProgressbar.cs
- PagePropertiesChangingEventArgs.cs
- HttpListenerRequest.cs
- SHA256Managed.cs
- Inline.cs
- WindowsListViewGroupHelper.cs
- EmptyEnumerable.cs
- ValidationHelpers.cs
- GroupLabel.cs
- UnionCodeGroup.cs
- PolyBezierSegmentFigureLogic.cs
- StrokeNodeOperations.cs
- QilXmlWriter.cs
- SqlDependency.cs
- CodeTypeDelegate.cs
- WorkflowRequestContext.cs
- ToolStripCustomTypeDescriptor.cs
- DataMemberFieldEditor.cs
- bidPrivateBase.cs
- DecimalAnimation.cs
- HtmlShim.cs
- ViewValidator.cs
- WebServiceResponseDesigner.cs
- EventManager.cs
- CultureInfoConverter.cs
- ResourceDisplayNameAttribute.cs
- SignatureResourceHelper.cs
- StrokeIntersection.cs
- FunctionParameter.cs
- HtmlDocument.cs
- SqlDataSourceCustomCommandPanel.cs
- ChannelBase.cs
- XmlSchemaComplexType.cs
- VirtualPathProvider.cs
- BlurBitmapEffect.cs
- UnmanagedMemoryStreamWrapper.cs
- CodeCatchClauseCollection.cs
- Input.cs
- WrappedIUnknown.cs
- DataPointer.cs
- TextRange.cs
- Triangle.cs
- ScriptingSectionGroup.cs
- ListViewPagedDataSource.cs
- StreamInfo.cs
- ColorTranslator.cs
- CalendarDay.cs
- OptimalBreakSession.cs
- EmptyQuery.cs
- ContractMapping.cs
- EntityDataSourceEntityTypeFilterItem.cs
- EnterpriseServicesHelper.cs
- RequestQueryParser.cs
- IDictionary.cs
- externdll.cs
- DATA_BLOB.cs
- SplineQuaternionKeyFrame.cs
- UnknownWrapper.cs
- ErrorInfoXmlDocument.cs
- ActivitySurrogate.cs