Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / UIAutomation / 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 : 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
- ByteStorage.cs
- GACMembershipCondition.cs
- WorkflowServiceHostFactory.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- TableItemProviderWrapper.cs
- WebPartConnectionsDisconnectVerb.cs
- BinaryMethodMessage.cs
- WindowsToolbarItemAsMenuItem.cs
- OdbcParameter.cs
- FieldBuilder.cs
- CommentAction.cs
- ParseHttpDate.cs
- AnimatedTypeHelpers.cs
- FormView.cs
- SoapSchemaMember.cs
- EventBuilder.cs
- clipboard.cs
- TabControl.cs
- PointLightBase.cs
- PersonalizableTypeEntry.cs
- UnionCodeGroup.cs
- GroupStyle.cs
- SqlTriggerAttribute.cs
- TerminatorSinks.cs
- SkipStoryboardToFill.cs
- DataSetUtil.cs
- CustomValidator.cs
- ByteStreamBufferedMessageData.cs
- InternalDuplexChannelFactory.cs
- StrokeNodeOperations2.cs
- PropertyValueChangedEvent.cs
- MouseDevice.cs
- PtsCache.cs
- precedingquery.cs
- ValueType.cs
- ToolStripSeparatorRenderEventArgs.cs
- Semaphore.cs
- X509DefaultServiceCertificateElement.cs
- ResourceBinder.cs
- MutexSecurity.cs
- ImageSource.cs
- odbcmetadatacolumnnames.cs
- Message.cs
- TablePatternIdentifiers.cs
- FileSecurity.cs
- TextDpi.cs
- Operator.cs
- DataSourceHelper.cs
- XmlBindingWorker.cs
- Light.cs
- ParserOptions.cs
- StylusLogic.cs
- DateTimeOffsetAdapter.cs
- DataGridViewCellMouseEventArgs.cs
- ISO2022Encoding.cs
- TextRunCache.cs
- invalidudtexception.cs
- StructuralObject.cs
- Delay.cs
- CapabilitiesUse.cs
- wmiutil.cs
- Figure.cs
- ListBoxItem.cs
- Processor.cs
- LifetimeServices.cs
- Helper.cs
- PerformanceCounterManager.cs
- Queue.cs
- ColorIndependentAnimationStorage.cs
- SafeNativeMethods.cs
- XsltArgumentList.cs
- ProtocolsConfiguration.cs
- ContainerUIElement3D.cs
- HwndKeyboardInputProvider.cs
- ItemChangedEventArgs.cs
- ConfigXmlText.cs
- HealthMonitoringSection.cs
- CodeAttributeArgument.cs
- RelationshipEnd.cs
- TabControlCancelEvent.cs
- SafeEventLogWriteHandle.cs
- AnnotationDocumentPaginator.cs
- Stopwatch.cs
- FullTextState.cs
- StreamGeometryContext.cs
- RelationshipEndCollection.cs
- DataGridViewColumnEventArgs.cs
- CodeTypeParameter.cs
- TypeToStringValueConverter.cs
- CallbackException.cs
- SelectionPatternIdentifiers.cs
- LinqDataSourceStatusEventArgs.cs
- NetworkStream.cs
- PathHelper.cs
- CqlIdentifiers.cs
- HostVisual.cs
- ElementUtil.cs
- PersistChildrenAttribute.cs
- BindingsCollection.cs