Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / EmptyElement.cs / 1305600 / 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
- XPathException.cs
- TemplateKeyConverter.cs
- Latin1Encoding.cs
- DictionaryEditChange.cs
- DbExpressionVisitor_TResultType.cs
- FontConverter.cs
- Html32TextWriter.cs
- DoubleCollectionValueSerializer.cs
- ScriptManagerProxy.cs
- ToolStripStatusLabel.cs
- ClientProxyGenerator.cs
- SimplePropertyEntry.cs
- HtmlElementCollection.cs
- RelationshipFixer.cs
- GcSettings.cs
- HostExecutionContextManager.cs
- SByteStorage.cs
- CopyOfAction.cs
- HtmlCommandAdapter.cs
- ISessionStateStore.cs
- ICspAsymmetricAlgorithm.cs
- JsonReaderDelegator.cs
- Int32Collection.cs
- CorrelationManager.cs
- HandlerMappingMemo.cs
- _UriSyntax.cs
- CoreSwitches.cs
- HtmlElement.cs
- QilDataSource.cs
- LogSwitch.cs
- ErrorFormatterPage.cs
- ResetableIterator.cs
- DbConnectionFactory.cs
- BulletedListEventArgs.cs
- ZipIOLocalFileDataDescriptor.cs
- AppSettings.cs
- GeometryDrawing.cs
- FormsAuthenticationConfiguration.cs
- AQNBuilder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RoleService.cs
- ActivityXamlServices.cs
- TaskFactory.cs
- BindableTemplateBuilder.cs
- TextEditorThreadLocalStore.cs
- MessageEventSubscriptionService.cs
- InstancePersistence.cs
- LocalServiceSecuritySettingsElement.cs
- TagPrefixAttribute.cs
- JournalEntryStack.cs
- Vector3dCollection.cs
- BufferedGraphics.cs
- basevalidator.cs
- JournalEntryListConverter.cs
- XhtmlTextWriter.cs
- ValueQuery.cs
- WindowsTitleBar.cs
- MethodBuilder.cs
- ExtensionFile.cs
- ToolStripDropDownClosedEventArgs.cs
- DesignSurfaceEvent.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- DateTimeSerializationSection.cs
- CacheAxisQuery.cs
- Int16AnimationBase.cs
- ContractBase.cs
- SchemaTypeEmitter.cs
- ColumnMapVisitor.cs
- SplineQuaternionKeyFrame.cs
- IntMinMaxAggregationOperator.cs
- FixedSOMLineRanges.cs
- SettingsPropertyValue.cs
- ServicesUtilities.cs
- TextHidden.cs
- GlyphInfoList.cs
- RequestQueryProcessor.cs
- AudioSignalProblemOccurredEventArgs.cs
- ToolStripComboBox.cs
- Command.cs
- EntityTypeEmitter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- RelatedView.cs
- XmlSchemaComplexContentRestriction.cs
- PageAsyncTask.cs
- EditingScopeUndoUnit.cs
- ECDsaCng.cs
- FloaterParagraph.cs
- LinearQuaternionKeyFrame.cs
- EntityViewGenerationConstants.cs
- ContentValidator.cs
- DbConnectionClosed.cs
- FixedDocumentSequencePaginator.cs
- BaseConfigurationRecord.cs
- TableItemStyle.cs
- ActivationService.cs
- FixedSOMTableCell.cs
- Component.cs
- smtpconnection.cs
- XmlChildEnumerator.cs
- PropertyNames.cs