Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TableLayoutCellPaintEventArgs.cs
- ClientRoleProvider.cs
- WebCategoryAttribute.cs
- OdbcPermission.cs
- PostBackOptions.cs
- LinkLabelLinkClickedEvent.cs
- Compiler.cs
- ListViewItem.cs
- WrapPanel.cs
- SiteMapPath.cs
- RawStylusInputCustomDataList.cs
- WindowPatternIdentifiers.cs
- AtomEntry.cs
- RangeContentEnumerator.cs
- ZipQueryOperator.cs
- SystemIPv6InterfaceProperties.cs
- ForeignKeyConstraint.cs
- Clause.cs
- LongSumAggregationOperator.cs
- SHA1.cs
- SnapLine.cs
- ContainerVisual.cs
- WebPartConnectionsConnectVerb.cs
- EdmConstants.cs
- RequiredArgumentAttribute.cs
- Hashtable.cs
- WmlControlAdapter.cs
- ColumnMapTranslator.cs
- StoreItemCollection.Loader.cs
- TextParagraphView.cs
- _RequestCacheProtocol.cs
- RuntimeArgumentHandle.cs
- OutputCacheProfile.cs
- CopyAttributesAction.cs
- WmlControlAdapter.cs
- TextMetrics.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- CompiledIdentityConstraint.cs
- Pkcs7Recipient.cs
- DrawingAttributes.cs
- EasingKeyFrames.cs
- FloaterParagraph.cs
- NumberFormatter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataGridBoolColumn.cs
- GridViewSelectEventArgs.cs
- ArgumentOutOfRangeException.cs
- ProviderSettings.cs
- SupportingTokenListenerFactory.cs
- Utilities.cs
- DataGridViewRowCollection.cs
- MdiWindowListStrip.cs
- SafeTokenHandle.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DataColumnMapping.cs
- EncryptedKey.cs
- Paragraph.cs
- DocumentApplicationJournalEntryEventArgs.cs
- securestring.cs
- Html32TextWriter.cs
- Comparer.cs
- SmtpDigestAuthenticationModule.cs
- InfoCardListRequest.cs
- ExpressionBinding.cs
- OleDbEnumerator.cs
- Pkcs7Signer.cs
- FixedSOMTableCell.cs
- DbConnectionHelper.cs
- RegexFCD.cs
- TextInfo.cs
- XmlLanguageConverter.cs
- Attribute.cs
- SoapAttributeOverrides.cs
- OdbcCommand.cs
- FieldAccessException.cs
- TypeToArgumentTypeConverter.cs
- DataIdProcessor.cs
- ListenerUnsafeNativeMethods.cs
- SqlDataReader.cs
- CurrencyWrapper.cs
- SRDisplayNameAttribute.cs
- PowerStatus.cs
- SHA512Managed.cs
- SeverityFilter.cs
- Evidence.cs
- OracleLob.cs
- AssociationTypeEmitter.cs
- UIElementParaClient.cs
- HTMLTagNameToTypeMapper.cs
- Container.cs
- NumberSubstitution.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Model3DGroup.cs
- initElementDictionary.cs
- FileNameEditor.cs
- FormatterServices.cs
- HtmlTernaryTree.cs
- RewritingSimplifier.cs
- TabItem.cs