Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- PerformanceCounterPermissionEntry.cs
- DropDownButton.cs
- DataTableReaderListener.cs
- GridPattern.cs
- XmlQueryType.cs
- LabelAutomationPeer.cs
- ImageMetadata.cs
- OutOfProcStateClientManager.cs
- ToggleButton.cs
- SchemaCollectionPreprocessor.cs
- Speller.cs
- XmlWellformedWriter.cs
- Stacktrace.cs
- CollectionConverter.cs
- WebPartConnectionsDisconnectVerb.cs
- EventListener.cs
- ValueType.cs
- DynamicMethod.cs
- ApplicationProxyInternal.cs
- ScriptIgnoreAttribute.cs
- CryptoApi.cs
- SecurityKeyType.cs
- ProcessHostFactoryHelper.cs
- ScrollBar.cs
- BezierSegment.cs
- HttpServerVarsCollection.cs
- RectangleF.cs
- ChangeNode.cs
- ActivityValidationServices.cs
- TransformerConfigurationWizardBase.cs
- RecordConverter.cs
- PageSetupDialog.cs
- NetDispatcherFaultException.cs
- CharacterMetrics.cs
- FilterInvalidBodyAccessException.cs
- StateDesigner.Layouts.cs
- TextReader.cs
- SqlBuffer.cs
- PolygonHotSpot.cs
- ObjectStateManagerMetadata.cs
- ToolStripGripRenderEventArgs.cs
- ExpressionCopier.cs
- VisualTreeHelper.cs
- XmlEntity.cs
- LogManagementAsyncResult.cs
- BrowserCapabilitiesCompiler.cs
- DeclarativeCatalogPartDesigner.cs
- ParserStreamGeometryContext.cs
- JournalNavigationScope.cs
- SmtpReplyReader.cs
- BatchParser.cs
- TypeConverter.cs
- Viewport3DVisual.cs
- InfoCardArgumentException.cs
- ToolboxItemWrapper.cs
- SslStream.cs
- XmlWellformedWriterHelpers.cs
- BoolExpressionVisitors.cs
- HandleScope.cs
- HttpResponseInternalWrapper.cs
- SelectionChangedEventArgs.cs
- TcpTransportSecurity.cs
- TableRow.cs
- x509store.cs
- UriSection.cs
- Win32Exception.cs
- HttpException.cs
- Faults.cs
- GridViewUpdatedEventArgs.cs
- _NTAuthentication.cs
- ImageCodecInfoPrivate.cs
- MediaPlayer.cs
- RijndaelManaged.cs
- MembershipPasswordException.cs
- ExclusiveTcpTransportManager.cs
- StrokeFIndices.cs
- ScalarConstant.cs
- ReservationNotFoundException.cs
- DispatchChannelSink.cs
- ProfileProvider.cs
- WSTrust.cs
- InputScopeNameConverter.cs
- Converter.cs
- DataGridItemEventArgs.cs
- AssociationEndMember.cs
- FileSystemInfo.cs
- securestring.cs
- StringConcat.cs
- XmlQueryCardinality.cs
- XmlWriter.cs
- QilLiteral.cs
- QueuePathEditor.cs
- AttributeData.cs
- tooltip.cs
- XmlSortKey.cs
- MetadataUtil.cs
- InfoCard.cs
- TraceHandlerErrorFormatter.cs
- ReferentialConstraintRoleElement.cs
- EntityParameter.cs