Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollProperties.cs / 1305376 / HScrollProperties.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System.Diagnostics; using System; using System.Security.Permissions; using System.Runtime.Serialization.Formatters; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms; ////// /// public class HScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public HScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Width; } } internal override int Orientation { get { return NativeMethods.SB_HORZ; } } internal override int HorizontalDisplayPosition { get { return -this.value; } } internal override int VerticalDisplayPosition { get { return ParentControl.DisplayRectangle.Y; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System.Diagnostics; using System; using System.Security.Permissions; using System.Runtime.Serialization.Formatters; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms; ////// /// public class HScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public HScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Width; } } internal override int Orientation { get { return NativeMethods.SB_HORZ; } } internal override int HorizontalDisplayPosition { get { return -this.value; } } internal override int VerticalDisplayPosition { get { return ParentControl.DisplayRectangle.Y; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicControlParameter.cs
- SwitchElementsCollection.cs
- FontEmbeddingManager.cs
- SQLDecimalStorage.cs
- XmlValidatingReader.cs
- HighlightVisual.cs
- ConfigurationConverterBase.cs
- ObjectHelper.cs
- ProjectionPlanCompiler.cs
- ManagedIStream.cs
- LocalizationParserHooks.cs
- FormViewUpdatedEventArgs.cs
- ListViewGroup.cs
- GregorianCalendarHelper.cs
- PassportAuthenticationModule.cs
- ElementUtil.cs
- SqlMetaData.cs
- FlowDocumentView.cs
- RawAppCommandInputReport.cs
- SpecularMaterial.cs
- ValueType.cs
- HtmlInputCheckBox.cs
- SafeMILHandle.cs
- HebrewCalendar.cs
- SqlCrossApplyToCrossJoin.cs
- _SslState.cs
- XsltLibrary.cs
- TypeConverterHelper.cs
- OdbcEnvironmentHandle.cs
- TextAction.cs
- HttpContext.cs
- XmlDocumentType.cs
- BitArray.cs
- PatternMatcher.cs
- InputLanguageEventArgs.cs
- ListBase.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TransformCollection.cs
- State.cs
- DataGridViewColumnEventArgs.cs
- XMLUtil.cs
- Identity.cs
- DataObject.cs
- QueryResponse.cs
- PhysicalAddress.cs
- EastAsianLunisolarCalendar.cs
- PartBasedPackageProperties.cs
- Slider.cs
- XmlSchemaInfo.cs
- _HTTPDateParse.cs
- QuotedPrintableStream.cs
- PartialCachingControl.cs
- WebPartCancelEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- DoubleKeyFrameCollection.cs
- TagPrefixInfo.cs
- Tool.cs
- KeyPressEvent.cs
- XmlSchemaElement.cs
- CapiNative.cs
- EntityType.cs
- CodeNamespaceCollection.cs
- SafeSerializationManager.cs
- Stopwatch.cs
- WebPartConnectionsDisconnectVerb.cs
- ResolveDuplexCD1AsyncResult.cs
- sqlpipe.cs
- ManageRequest.cs
- TableColumnCollection.cs
- XPathDocumentNavigator.cs
- SqlCharStream.cs
- DefaultWorkflowSchedulerService.cs
- ProxyManager.cs
- Imaging.cs
- CounterSampleCalculator.cs
- XDeferredAxisSource.cs
- CssClassPropertyAttribute.cs
- TimeSpanValidator.cs
- LinkClickEvent.cs
- RadioButtonFlatAdapter.cs
- CustomLineCap.cs
- ResourceExpressionBuilder.cs
- XmlWriterTraceListener.cs
- LayoutEvent.cs
- FixedSOMSemanticBox.cs
- TimeoutValidationAttribute.cs
- DelegatedStream.cs
- FirstMatchCodeGroup.cs
- Matrix.cs
- ConvertersCollection.cs
- MetadataHelper.cs
- DataGridViewCell.cs
- JsonReaderDelegator.cs
- DaylightTime.cs
- FlowDocument.cs
- RelativeSource.cs
- Timer.cs
- XmlNodeReader.cs
- RepeatBehaviorConverter.cs
- SiteMapDataSourceView.cs