Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollProperties.cs / 1305376 / VScrollProperties.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 VScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public VScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Height; } } internal override int Orientation { get { return NativeMethods.SB_VERT; } } internal override int HorizontalDisplayPosition { get { return ParentControl.DisplayRectangle.X; } } internal override int VerticalDisplayPosition { get { return -this.value; } } } } // 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 VScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public VScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Height; } } internal override int Orientation { get { return NativeMethods.SB_VERT; } } internal override int HorizontalDisplayPosition { get { return ParentControl.DisplayRectangle.X; } } internal override int VerticalDisplayPosition { get { return -this.value; } } } } // 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
- Compilation.cs
- TrackBarRenderer.cs
- SqlDependencyUtils.cs
- CounterSampleCalculator.cs
- LiteralControl.cs
- XmlDocumentFragment.cs
- BlockingCollection.cs
- FormattedText.cs
- ThemeInfoAttribute.cs
- TableItemStyle.cs
- ChannelSinkStacks.cs
- LogLogRecord.cs
- GeneratedContractType.cs
- XmlSchemaComplexContent.cs
- MethodAccessException.cs
- FlowPosition.cs
- AssemblyGen.cs
- safex509handles.cs
- HashAlgorithm.cs
- HttpSysSettings.cs
- DictionaryBase.cs
- WindowsGraphics.cs
- TrustLevel.cs
- DataGridTablesFactory.cs
- ListView.cs
- DecryptedHeader.cs
- UnhandledExceptionEventArgs.cs
- XPathBinder.cs
- XmlBinaryReader.cs
- Not.cs
- Attributes.cs
- CompressedStack.cs
- XmlNodeComparer.cs
- AutomationEventArgs.cs
- RequestBringIntoViewEventArgs.cs
- Viewport3DAutomationPeer.cs
- EndpointDiscoveryMetadata11.cs
- TargetFrameworkAttribute.cs
- ListViewAutomationPeer.cs
- ProfileBuildProvider.cs
- ToolStripDropDownDesigner.cs
- NullableFloatSumAggregationOperator.cs
- ToolStripSplitButton.cs
- XmlComment.cs
- InputProcessorProfiles.cs
- TableHeaderCell.cs
- Double.cs
- FileSecurity.cs
- SubclassTypeValidatorAttribute.cs
- PtsPage.cs
- TextDecorationCollection.cs
- MsmqIntegrationOutputChannel.cs
- BufferedGraphics.cs
- DataServiceClientException.cs
- NativeMethods.cs
- SaveFileDialog.cs
- Point4D.cs
- TextServicesCompartmentContext.cs
- TrackingStringDictionary.cs
- XmlSchemaComplexContentRestriction.cs
- XPathNodeIterator.cs
- TextPatternIdentifiers.cs
- AssertUtility.cs
- DrawingVisual.cs
- PrimitiveSchema.cs
- GlyphRun.cs
- counter.cs
- DataSysAttribute.cs
- PathFigureCollectionConverter.cs
- DecimalAnimation.cs
- ObjectHelper.cs
- ChannelEndpointElementCollection.cs
- MessagePartProtectionMode.cs
- HtmlTableCellCollection.cs
- ClientOptions.cs
- PictureBox.cs
- HttpCookie.cs
- ArraySet.cs
- SQLGuid.cs
- Rijndael.cs
- AbstractExpressions.cs
- ButtonAutomationPeer.cs
- XmlResolver.cs
- Color.cs
- BindingExpressionUncommonField.cs
- FlowchartDesignerCommands.cs
- RtfControlWordInfo.cs
- SchemaCompiler.cs
- WebPartDisplayModeCancelEventArgs.cs
- DecoderFallback.cs
- GroupBox.cs
- DataBinding.cs
- DefaultBindingPropertyAttribute.cs
- DateTimeOffset.cs
- TransformGroup.cs
- HttpPostedFile.cs
- Selection.cs
- RecognitionEventArgs.cs
- MetadataItemSerializer.cs
- OAVariantLib.cs