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
- COM2IPerPropertyBrowsingHandler.cs
- TabRenderer.cs
- AncestorChangedEventArgs.cs
- FlowNode.cs
- ControlCollection.cs
- Wrapper.cs
- WebEncodingValidatorAttribute.cs
- BinaryExpression.cs
- ColorIndependentAnimationStorage.cs
- Point4DValueSerializer.cs
- DisposableCollectionWrapper.cs
- ProviderUtil.cs
- NCryptSafeHandles.cs
- CommandPlan.cs
- BufferModesCollection.cs
- ExpressionLink.cs
- SelectingProviderEventArgs.cs
- HttpResponseInternalWrapper.cs
- DrawingBrush.cs
- WindowsRichEdit.cs
- DBNull.cs
- StrongTypingException.cs
- Size.cs
- NetworkCredential.cs
- FileDialog.cs
- RegistrationServices.cs
- Debugger.cs
- SafeLocalAllocation.cs
- EastAsianLunisolarCalendar.cs
- ChildChangedEventArgs.cs
- OracleInfoMessageEventArgs.cs
- TreeViewHitTestInfo.cs
- M3DUtil.cs
- Enum.cs
- DebugHandleTracker.cs
- QuadraticBezierSegment.cs
- CompilationUtil.cs
- ToolboxComponentsCreatedEventArgs.cs
- WebUtil.cs
- CookielessHelper.cs
- SignedPkcs7.cs
- XmlSiteMapProvider.cs
- DataGridViewElement.cs
- WebBrowser.cs
- CommonObjectSecurity.cs
- Padding.cs
- odbcmetadatafactory.cs
- Types.cs
- DataServiceRequestArgs.cs
- FigureParagraph.cs
- MultiByteCodec.cs
- ChannelAcceptor.cs
- BrowserDefinitionCollection.cs
- ADMembershipUser.cs
- OleDbConnectionInternal.cs
- CompositeTypefaceMetrics.cs
- NullableLongSumAggregationOperator.cs
- Vector3DValueSerializer.cs
- FrameworkElement.cs
- EndOfStreamException.cs
- ReflectionPermission.cs
- DateTimeStorage.cs
- CustomLineCap.cs
- Rotation3D.cs
- RegexCompilationInfo.cs
- QueuePathDialog.cs
- RenderCapability.cs
- UserControlBuildProvider.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- KeyValueConfigurationCollection.cs
- CompositionAdorner.cs
- ZoomPercentageConverter.cs
- PropagatorResult.cs
- GeneratedCodeAttribute.cs
- NonVisualControlAttribute.cs
- ConfigurationLockCollection.cs
- ToolStripContainer.cs
- DynamicUpdateCommand.cs
- XmlSerializerVersionAttribute.cs
- TreeBuilderBamlTranslator.cs
- CharacterShapingProperties.cs
- ColorKeyFrameCollection.cs
- SystemColorTracker.cs
- DataSvcMapFile.cs
- Domain.cs
- BitVector32.cs
- InvalidCastException.cs
- Root.cs
- remotingproxy.cs
- Empty.cs
- LinqDataSource.cs
- HasCopySemanticsAttribute.cs
- WebPartConnectionCollection.cs
- ToolStripOverflowButton.cs
- QilGeneratorEnv.cs
- SmtpDateTime.cs
- HttpListener.cs
- StringToken.cs
- DesignerEventService.cs
- XmlDataDocument.cs