Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / EmptyElement.cs / 1 / EmptyElement.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Implementation of an empty proxy provider // // History: // alexsn - Created (in DotNet) // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { // Empty proxy provider class EmptyElement : IRawElementProviderSimple { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors protected EmptyElement() { } #endregion Constructors //------------------------------------------------------ // // IRawElementProviderSimple // //----------------------------------------------------- #region Interface IRawElementProviderSimple ProviderOptions IRawElementProviderSimple.ProviderOptions { get { return ProviderOptions.ClientSideProvider; } } object IRawElementProviderSimple.GetPatternProvider(int patternId) { return null; } object IRawElementProviderSimple.GetPropertyValue(int propertyId) { return null; } IRawElementProviderSimple IRawElementProviderSimple.HostRawElementProvider { get { return null; } } #endregion Interface IRawElementProviderSimple } // Empty GridItem cell implementation sealed class EmptyGridItem : EmptyElement, IRawElementProviderSimple, IGridItemProvider { #region Data readonly int _row; readonly int _column; readonly int _rowSpan; readonly int _columnSpan; IRawElementProviderSimple _containingGrid; #endregion Data #region Constructor internal EmptyGridItem(int row, int column, IRawElementProviderSimple containingGrid) { _row = row; _column = column; _rowSpan = 1; _columnSpan = 1; _containingGrid = containingGrid; } #endregion Constructor #region IRawElementProviderSimple object IRawElementProviderSimple.GetPatternProvider(int patternId) { if (patternId == GridItemPattern.Pattern.Id) { return this; } return null; } #endregion IRawElementProviderSimple #region IGridItemProvider int IGridItemProvider.Column { get { return _column; } } int IGridItemProvider.ColumnSpan { get { return _columnSpan; } } IRawElementProviderSimple IGridItemProvider.ContainingGrid { get { return _containingGrid; } } int IGridItemProvider.Row { get { return _row; } } int IGridItemProvider.RowSpan { get { return _rowSpan; } } #endregion IGridItemProvider } } // 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: Implementation of an empty proxy provider // // History: // alexsn - Created (in DotNet) // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { // Empty proxy provider class EmptyElement : IRawElementProviderSimple { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors protected EmptyElement() { } #endregion Constructors //------------------------------------------------------ // // IRawElementProviderSimple // //----------------------------------------------------- #region Interface IRawElementProviderSimple ProviderOptions IRawElementProviderSimple.ProviderOptions { get { return ProviderOptions.ClientSideProvider; } } object IRawElementProviderSimple.GetPatternProvider(int patternId) { return null; } object IRawElementProviderSimple.GetPropertyValue(int propertyId) { return null; } IRawElementProviderSimple IRawElementProviderSimple.HostRawElementProvider { get { return null; } } #endregion Interface IRawElementProviderSimple } // Empty GridItem cell implementation sealed class EmptyGridItem : EmptyElement, IRawElementProviderSimple, IGridItemProvider { #region Data readonly int _row; readonly int _column; readonly int _rowSpan; readonly int _columnSpan; IRawElementProviderSimple _containingGrid; #endregion Data #region Constructor internal EmptyGridItem(int row, int column, IRawElementProviderSimple containingGrid) { _row = row; _column = column; _rowSpan = 1; _columnSpan = 1; _containingGrid = containingGrid; } #endregion Constructor #region IRawElementProviderSimple object IRawElementProviderSimple.GetPatternProvider(int patternId) { if (patternId == GridItemPattern.Pattern.Id) { return this; } return null; } #endregion IRawElementProviderSimple #region IGridItemProvider int IGridItemProvider.Column { get { return _column; } } int IGridItemProvider.ColumnSpan { get { return _columnSpan; } } IRawElementProviderSimple IGridItemProvider.ContainingGrid { get { return _containingGrid; } } int IGridItemProvider.Row { get { return _row; } } int IGridItemProvider.RowSpan { get { return _rowSpan; } } #endregion IGridItemProvider } } // 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
- XPathAxisIterator.cs
- SmtpFailedRecipientsException.cs
- FileInfo.cs
- SQLSingle.cs
- PointLightBase.cs
- TimersDescriptionAttribute.cs
- XmlObjectSerializerWriteContextComplex.cs
- DataGridViewRowCollection.cs
- CurrentChangedEventManager.cs
- SequenceNumber.cs
- RSAOAEPKeyExchangeDeformatter.cs
- StateWorkerRequest.cs
- HtmlInputImage.cs
- AutomationInteropProvider.cs
- LocalizableAttribute.cs
- EntryPointNotFoundException.cs
- Int16Converter.cs
- InternalConfigEventArgs.cs
- ProfileService.cs
- ClassGenerator.cs
- CodeEntryPointMethod.cs
- SqlCacheDependencySection.cs
- DbMetaDataColumnNames.cs
- TypeExtensionConverter.cs
- WebPartTransformerCollection.cs
- ADMembershipProvider.cs
- ScaleTransform3D.cs
- BamlTreeUpdater.cs
- ObjectDataSource.cs
- IIS7WorkerRequest.cs
- DataGridViewRowPostPaintEventArgs.cs
- GridViewDeletedEventArgs.cs
- TranslateTransform.cs
- EditingCoordinator.cs
- XmlSchemaSimpleContentRestriction.cs
- CompilationSection.cs
- TaskSchedulerException.cs
- Point4D.cs
- DataGridView.cs
- XmlSchemaCompilationSettings.cs
- XmlChildEnumerator.cs
- RouteItem.cs
- HtmlTableRowCollection.cs
- ExpressionLexer.cs
- TypeGeneratedEventArgs.cs
- XmlSerializableWriter.cs
- Process.cs
- ToolStripItemCollection.cs
- UrlAuthorizationModule.cs
- _Rfc2616CacheValidators.cs
- SystemParameters.cs
- PointConverter.cs
- IntSecurity.cs
- Inflater.cs
- EventBuilder.cs
- ImageClickEventArgs.cs
- QueryContinueDragEventArgs.cs
- BCryptHashAlgorithm.cs
- RMEnrollmentPage2.cs
- ValidationResult.cs
- Splitter.cs
- CapabilitiesAssignment.cs
- unsafenativemethodsother.cs
- OpenTypeCommon.cs
- ReferenceService.cs
- Mutex.cs
- TabItemAutomationPeer.cs
- WindowsAltTab.cs
- RtfControlWordInfo.cs
- GotoExpression.cs
- Membership.cs
- UidPropertyAttribute.cs
- DescendantOverDescendantQuery.cs
- ResourceDescriptionAttribute.cs
- ReferenceService.cs
- XhtmlBasicLiteralTextAdapter.cs
- StylusPointPropertyInfoDefaults.cs
- HtmlToClrEventProxy.cs
- WriterOutput.cs
- InternalException.cs
- FileSystemInfo.cs
- RuntimeEnvironment.cs
- CalendarButtonAutomationPeer.cs
- SQLRoleProvider.cs
- Action.cs
- DataFormat.cs
- CaseInsensitiveComparer.cs
- RIPEMD160Managed.cs
- XmlResolver.cs
- XmlSchemaImporter.cs
- OrderPreservingSpoolingTask.cs
- MatcherBuilder.cs
- TextServicesDisplayAttribute.cs
- PointAnimationBase.cs
- ManipulationPivot.cs
- DefaultPrintController.cs
- TextTreeRootTextBlock.cs
- StateChangeEvent.cs
- TreeNodeBindingCollection.cs
- ThumbAutomationPeer.cs