Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / UIAutomationClient / System / Windows / Automation / ScrollItemPattern.cs / 1305600 / ScrollItemPattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for ScrollItem Pattern // // History: // 05/04/2004 : MKarr Wrote // //--------------------------------------------------------------------------- using System; using System.Windows.Automation.Provider; using MS.Internal.Automation; using System.Runtime.InteropServices; namespace System.Windows.Automation { ////// Represents UI elements in a scrollable area that can be scrolled to. /// #if (INTERNAL_COMPILE) internal class ScrollItemPattern: BasePattern #else public class ScrollItemPattern: BasePattern #endif { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors private ScrollItemPattern(AutomationElement el, SafePatternHandle hPattern) : base(el, hPattern) { _hPattern = hPattern; } #endregion Constructors //------------------------------------------------------ // // Public Constants / Readonly Fields // //----------------------------------------------------- #region Public Constants and Readonly Fields ///Scroll pattern public static readonly AutomationPattern Pattern = ScrollItemPatternIdentifiers.Pattern; #endregion Public Constants and Readonly Fields //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ #region Public Methods ////// Scrolls the windows containing this automation element to make this element visible. /// InvalidOperationException should be thrown if item becomes unable to be scrolled. Makes /// no guarantees about where the item will be in the scrolled window. /// public void ScrollIntoView() { UiaCoreApi.ScrollItemPattern_ScrollIntoView(_hPattern); } #endregion Public Methods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods static internal object Wrap(AutomationElement el, SafePatternHandle hPattern, bool cached) { return new ScrollItemPattern(el, hPattern); } #endregion Internal Methods //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private SafePatternHandle _hPattern; #endregion Private Fields } } // 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
- SingleBodyParameterMessageFormatter.cs
- _SslSessionsCache.cs
- ImageClickEventArgs.cs
- Point3DCollection.cs
- XsdDuration.cs
- BuildProvider.cs
- TransformedBitmap.cs
- SerializationInfo.cs
- XamlReaderHelper.cs
- ContainerControlDesigner.cs
- SmuggledIUnknown.cs
- QilXmlWriter.cs
- SessionStateModule.cs
- OleDbRowUpdatedEvent.cs
- ProtectedConfigurationSection.cs
- ComplexBindingPropertiesAttribute.cs
- InheritanceUI.cs
- PreDigestedSignedInfo.cs
- EdmError.cs
- QueryTask.cs
- BuilderInfo.cs
- Operand.cs
- SQLBinary.cs
- TypePropertyEditor.cs
- CompoundFileIOPermission.cs
- OleDbInfoMessageEvent.cs
- ParserStack.cs
- ImmutablePropertyDescriptorGridEntry.cs
- CatalogPart.cs
- LabelInfo.cs
- Compilation.cs
- SuppressMessageAttribute.cs
- RequestCachePolicy.cs
- BuildManagerHost.cs
- CalendarData.cs
- CollectionBuilder.cs
- DataGridrowEditEndingEventArgs.cs
- ServiceOperationInvoker.cs
- _DomainName.cs
- RequestStatusBarUpdateEventArgs.cs
- PkcsMisc.cs
- XamlReader.cs
- DataKeyArray.cs
- PersonalizationProviderCollection.cs
- WebSysDescriptionAttribute.cs
- XmlILStorageConverter.cs
- TryCatchDesigner.xaml.cs
- PageCodeDomTreeGenerator.cs
- MatchingStyle.cs
- WizardSideBarListControlItemEventArgs.cs
- MenuAutomationPeer.cs
- HtmlInputReset.cs
- SQLByteStorage.cs
- XmlTextReaderImpl.cs
- MergeEnumerator.cs
- EntityDataSourceWrapperCollection.cs
- ClrPerspective.cs
- SearchForVirtualItemEventArgs.cs
- FullTextState.cs
- XmlnsDictionary.cs
- TypeFieldSchema.cs
- IsolatedStorage.cs
- DesignerAttribute.cs
- ObservableDictionary.cs
- TabControlCancelEvent.cs
- StyleSheetDesigner.cs
- ValueConversionAttribute.cs
- DataGridAddNewRow.cs
- BindingsCollection.cs
- OleDbException.cs
- SafeArrayTypeMismatchException.cs
- PropertyInfoSet.cs
- HtmlInputText.cs
- ClientRuntimeConfig.cs
- HtmlTitle.cs
- WorkflowPrinting.cs
- SQLRoleProvider.cs
- SqlGatherConsumedAliases.cs
- Codec.cs
- WebAdminConfigurationHelper.cs
- ImmComposition.cs
- BasePattern.cs
- StorageEntityContainerMapping.cs
- Subset.cs
- DependencyPropertyKind.cs
- PreservationFileReader.cs
- SelectionEditingBehavior.cs
- SessionStateModule.cs
- PlanCompiler.cs
- Cursors.cs
- IPAddress.cs
- ConnectionPoolManager.cs
- DataGridViewControlCollection.cs
- ComplexTypeEmitter.cs
- AddingNewEventArgs.cs
- XmlDocument.cs
- ToolStripDropDownClosingEventArgs.cs
- WebFormsRootDesigner.cs
- Int64.cs
- ControlUtil.cs