Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / UIAutomationClient / System / Windows / Automation / ScrollItemPattern.cs / 1 / ScrollItemPattern.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Client-side wrapper for ScrollItem Pattern // // History: // 05/04/2004 : [....] 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
- DivideByZeroException.cs
- ObjectHandle.cs
- HwndTarget.cs
- DataTemplate.cs
- QilStrConcatenator.cs
- SessionStateModule.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ExceptionHelpers.cs
- WebConfigurationManager.cs
- TcpHostedTransportConfiguration.cs
- DPAPIProtectedConfigurationProvider.cs
- SoapHeaders.cs
- BufferedReadStream.cs
- AnnouncementEndpointElement.cs
- DocobjHost.cs
- XmlCompatibilityReader.cs
- HttpHandlerAction.cs
- QuarticEase.cs
- CaseStatementSlot.cs
- MatrixAnimationUsingKeyFrames.cs
- WebEventTraceProvider.cs
- SimpleTypeResolver.cs
- SerialStream.cs
- ConnectionsZone.cs
- IndexExpression.cs
- LineServicesRun.cs
- ThreadInterruptedException.cs
- BamlWriter.cs
- InputScopeAttribute.cs
- SyndicationDeserializer.cs
- TypedRowGenerator.cs
- Html32TextWriter.cs
- DocumentGridPage.cs
- ObjectCloneHelper.cs
- ErrorWrapper.cs
- MetaModel.cs
- DrawingImage.cs
- StringBuilder.cs
- DispatcherFrame.cs
- WindowsUpDown.cs
- PipelineModuleStepContainer.cs
- ScriptComponentDescriptor.cs
- MasterPageParser.cs
- HostingEnvironment.cs
- RepeaterItemEventArgs.cs
- MessageBox.cs
- DocumentViewerConstants.cs
- NavigatorInvalidBodyAccessException.cs
- DictionaryManager.cs
- ReflectionTypeLoadException.cs
- Rect3DConverter.cs
- MapPathBasedVirtualPathProvider.cs
- FormViewDeleteEventArgs.cs
- HostingEnvironmentException.cs
- Blend.cs
- MediaElementAutomationPeer.cs
- HtmlDocument.cs
- PropertyMapper.cs
- X509CertificateCollection.cs
- CapiSymmetricAlgorithm.cs
- UIElementPropertyUndoUnit.cs
- storepermissionattribute.cs
- WebEventTraceProvider.cs
- SqlCommandBuilder.cs
- Wrapper.cs
- ResumeStoryboard.cs
- JoinTreeSlot.cs
- BoundsDrawingContextWalker.cs
- FormParameter.cs
- ResourceDictionaryCollection.cs
- DesignerResources.cs
- HuffmanTree.cs
- Vector.cs
- CodeDelegateInvokeExpression.cs
- CLRBindingWorker.cs
- SelectionRangeConverter.cs
- OrderedDictionary.cs
- QueryOptionExpression.cs
- SpeakInfo.cs
- InfiniteIntConverter.cs
- BuildManagerHost.cs
- LogRecordSequence.cs
- ProfileParameter.cs
- SmtpDateTime.cs
- ResourceReader.cs
- CardSpaceException.cs
- Style.cs
- PropertyPath.cs
- EventSourceCreationData.cs
- DbExpressionRules.cs
- MarginCollapsingState.cs
- RouteParametersHelper.cs
- SourceFilter.cs
- ForwardPositionQuery.cs
- DesignTimeVisibleAttribute.cs
- AbandonedMutexException.cs
- PassportAuthentication.cs
- XhtmlBasicValidatorAdapter.cs
- CombinedHttpChannel.cs
- BaseTemplateCodeDomTreeGenerator.cs