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
- Int32Animation.cs
- TemplateControlCodeDomTreeGenerator.cs
- ArraySubsetEnumerator.cs
- PartitionedStreamMerger.cs
- OutputWindow.cs
- WhitespaceReader.cs
- RenderTargetBitmap.cs
- TextServicesDisplayAttribute.cs
- RecipientIdentity.cs
- EditorZoneBase.cs
- Int32Converter.cs
- GridViewRow.cs
- SeekableReadStream.cs
- CodeBlockBuilder.cs
- SessionParameter.cs
- DbProviderFactories.cs
- XmlMtomWriter.cs
- ConnectionStringsExpressionBuilder.cs
- HandledMouseEvent.cs
- DataGridViewCellCancelEventArgs.cs
- SessionStateContainer.cs
- Margins.cs
- BeginGetFileNameFromUserRequest.cs
- WinFormsSecurity.cs
- XmlCharacterData.cs
- Control.cs
- CodeAttributeArgumentCollection.cs
- ContentOnlyMessage.cs
- PropertyStore.cs
- PerfCounterSection.cs
- SafeNativeMethods.cs
- BindingsCollection.cs
- HttpHeaderCollection.cs
- DeferredSelectedIndexReference.cs
- SystemResourceHost.cs
- FormViewInsertEventArgs.cs
- DataGridCommandEventArgs.cs
- Propagator.cs
- DropShadowEffect.cs
- RemoteWebConfigurationHost.cs
- PerfCounterSection.cs
- Encoder.cs
- Semaphore.cs
- DoubleKeyFrameCollection.cs
- WebPartTransformerAttribute.cs
- UIElement3D.cs
- SoapSchemaImporter.cs
- designeractionlistschangedeventargs.cs
- TypeLoadException.cs
- DelimitedListTraceListener.cs
- PrintPreviewDialog.cs
- SafeSystemMetrics.cs
- HandleValueEditor.cs
- ApplicationBuildProvider.cs
- SortedList.cs
- DefaultTraceListener.cs
- CompiledIdentityConstraint.cs
- RegexCaptureCollection.cs
- XsdCachingReader.cs
- UniqueEventHelper.cs
- ConfigurationSettings.cs
- DispatcherObject.cs
- SiteMapNodeItemEventArgs.cs
- BaseCollection.cs
- UriScheme.cs
- ChtmlPageAdapter.cs
- InternalCache.cs
- DBCommand.cs
- ProtectedConfiguration.cs
- Span.cs
- HtmlElement.cs
- XmlSchemaComplexContentRestriction.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PKCS1MaskGenerationMethod.cs
- ExternalException.cs
- SettingsPropertyValueCollection.cs
- ArcSegment.cs
- TextStore.cs
- DynamicMethod.cs
- IPCCacheManager.cs
- SystemResourceHost.cs
- RegexMatch.cs
- StringFormat.cs
- TcpClientCredentialType.cs
- Button.cs
- UIElementCollection.cs
- ConnectionProviderAttribute.cs
- AmbientLight.cs
- EventMappingSettingsCollection.cs
- _Connection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ItemsPanelTemplate.cs
- DataGridItem.cs
- MailMessageEventArgs.cs
- ShutDownListener.cs
- ModelPerspective.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FontSource.cs
- WebConfigurationHostFileChange.cs
- InvalidPrinterException.cs