Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlnsCompatibleWithAttribute.cs
- EmptyCollection.cs
- PropertyRef.cs
- DateTime.cs
- CommandSet.cs
- WebConfigurationManager.cs
- BuiltInPermissionSets.cs
- HyperLinkStyle.cs
- SchemaNames.cs
- EntityKeyElement.cs
- ReferenceEqualityComparer.cs
- WorkflowMarkupSerializationProvider.cs
- storepermission.cs
- RawStylusInputCustomDataList.cs
- BaseParaClient.cs
- FileNameEditor.cs
- CriticalFileToken.cs
- SynchronizationLockException.cs
- CompilerInfo.cs
- CellIdBoolean.cs
- RemoteWebConfigurationHostServer.cs
- SqlConnectionPoolProviderInfo.cs
- CompensationDesigner.cs
- RadioButton.cs
- OperationAbortedException.cs
- AssemblyResourceLoader.cs
- IgnoreSectionHandler.cs
- InlinedLocationReference.cs
- UriParserTemplates.cs
- DeclarativeCatalogPart.cs
- PersonalizationStateInfo.cs
- HelpKeywordAttribute.cs
- Util.cs
- EntitySqlQueryCacheEntry.cs
- WeakReference.cs
- ListItemViewAttribute.cs
- VectorCollection.cs
- NotImplementedException.cs
- Italic.cs
- ScaleTransform.cs
- IPHostEntry.cs
- TextRunTypographyProperties.cs
- BuildManagerHost.cs
- NonBatchDirectoryCompiler.cs
- ObjectHelper.cs
- BitmapEncoder.cs
- RadioButton.cs
- TdsParserSessionPool.cs
- DataGridViewRowHeaderCell.cs
- OpenTypeLayoutCache.cs
- Column.cs
- SharedStatics.cs
- WebPartVerb.cs
- SrgsToken.cs
- AVElementHelper.cs
- DateTime.cs
- CompilerHelpers.cs
- IPGlobalProperties.cs
- TextCollapsingProperties.cs
- RawMouseInputReport.cs
- ExtensionsSection.cs
- ErrorActivity.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- SlipBehavior.cs
- TypeTypeConverter.cs
- DataTrigger.cs
- XmlLoader.cs
- LocatorGroup.cs
- SwitchAttribute.cs
- SqlBuilder.cs
- SymbolType.cs
- SoapInteropTypes.cs
- CryptoProvider.cs
- FilterQueryOptionExpression.cs
- SetStoryboardSpeedRatio.cs
- SafeCryptContextHandle.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DesignerCategoryAttribute.cs
- UpdateManifestForBrowserApplication.cs
- DataGridDesigner.cs
- Ref.cs
- TitleStyle.cs
- TaiwanCalendar.cs
- CodeSnippetStatement.cs
- Transform.cs
- NullableConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- WebChannelFactory.cs
- SqlMetaData.cs
- SqlError.cs
- XmlNode.cs
- FontCollection.cs
- DynamicDocumentPaginator.cs
- ObjectStorage.cs
- Profiler.cs
- namescope.cs
- EmptyStringExpandableObjectConverter.cs
- SwitchAttribute.cs
- SafeMILHandleMemoryPressure.cs
- ServiceAuthorizationElement.cs