Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Transform.cs
- XmlSiteMapProvider.cs
- CheckedListBox.cs
- DBSchemaTable.cs
- DataBoundControlDesigner.cs
- MethodResolver.cs
- RefreshEventArgs.cs
- Window.cs
- EmptyEnumerable.cs
- ResourceCategoryAttribute.cs
- StorageComplexPropertyMapping.cs
- SchemeSettingElement.cs
- ClockGroup.cs
- ChannelSettingsElement.cs
- ValidatorAttribute.cs
- DesignerEditorPartChrome.cs
- Types.cs
- CharacterBufferReference.cs
- PerformanceCounter.cs
- Menu.cs
- TextServicesProperty.cs
- StorageMappingItemCollection.cs
- StringUtil.cs
- Stack.cs
- BaseCollection.cs
- DynamicDiscoSearcher.cs
- CfgRule.cs
- ObjectStateEntry.cs
- DataContractSerializer.cs
- VideoDrawing.cs
- DiffuseMaterial.cs
- ImageCodecInfoPrivate.cs
- GenericUriParser.cs
- TransactionScope.cs
- DispatcherHookEventArgs.cs
- WebPartUserCapability.cs
- SQLInt64.cs
- Property.cs
- SessionStateItemCollection.cs
- OdbcUtils.cs
- PathGeometry.cs
- WorkflowDesignerColors.cs
- HttpApplication.cs
- BoundPropertyEntry.cs
- WebPartMovingEventArgs.cs
- ArglessEventHandlerProxy.cs
- FilteredAttributeCollection.cs
- Int16Animation.cs
- PathFigureCollection.cs
- Parallel.cs
- TreeViewTemplateSelector.cs
- Button.cs
- SaveCardRequest.cs
- BindingContext.cs
- LinkedResource.cs
- Base64Encoder.cs
- HttpApplicationFactory.cs
- GeometryGroup.cs
- XmlNotation.cs
- SharedPerformanceCounter.cs
- SQLMoneyStorage.cs
- EUCJPEncoding.cs
- Border.cs
- DataGridViewSelectedRowCollection.cs
- COM2PropertyDescriptor.cs
- NetTcpBinding.cs
- AppSettingsReader.cs
- ChannelSinkStacks.cs
- DateTimeFormat.cs
- _HelperAsyncResults.cs
- SqlProfileProvider.cs
- ToolStripItemImageRenderEventArgs.cs
- Tuple.cs
- MLangCodePageEncoding.cs
- ToolStripSplitButton.cs
- HierarchicalDataSourceControl.cs
- ZipIOCentralDirectoryFileHeader.cs
- PlainXmlDeserializer.cs
- ObjectMemberMapping.cs
- TextStore.cs
- CodeMemberProperty.cs
- GridView.cs
- DateTimeConverter2.cs
- FSWPathEditor.cs
- ApplicationServiceHelper.cs
- TemplatePropertyEntry.cs
- SecurityDescriptor.cs
- ToolStripSettings.cs
- SoapMessage.cs
- AnnouncementService.cs
- EnumerableRowCollectionExtensions.cs
- TdsParserSessionPool.cs
- TemplatePropertyEntry.cs
- ThrowHelper.cs
- TextSelectionHighlightLayer.cs
- EmptyEnumerator.cs
- ItemCollection.cs
- ListView.cs
- MetadataArtifactLoaderCompositeFile.cs
- SoapAttributes.cs