Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollProperties.cs / 1 / 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;
///
///
///
/// Basic Properties for VScroll.
///
///
public class VScrollProperties : ScrollProperties {
///
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;
///
///
///
/// Basic Properties for VScroll.
///
///
public class VScrollProperties : ScrollProperties {
///
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
- DataServiceClientException.cs
- PropertyReferenceSerializer.cs
- ScrollContentPresenter.cs
- XslUrlEditor.cs
- FontStretches.cs
- LinkDescriptor.cs
- SqlDataSourceSummaryPanel.cs
- WindowHideOrCloseTracker.cs
- IdleTimeoutMonitor.cs
- GridViewColumnCollection.cs
- SqlNodeTypeOperators.cs
- SqlConnectionStringBuilder.cs
- CrossAppDomainChannel.cs
- MemoryStream.cs
- EmptyReadOnlyDictionaryInternal.cs
- fixedPageContentExtractor.cs
- DataContractSerializerSection.cs
- ReflectEventDescriptor.cs
- SecurityKeyType.cs
- DbBuffer.cs
- NamespaceDecl.cs
- SrgsGrammarCompiler.cs
- XmlSchemaAttribute.cs
- DataGridViewCellStyle.cs
- InternalCache.cs
- RoleServiceManager.cs
- EdmEntityTypeAttribute.cs
- GrammarBuilderWildcard.cs
- AccessedThroughPropertyAttribute.cs
- GenericAuthenticationEventArgs.cs
- PointValueSerializer.cs
- InvalidComObjectException.cs
- QueryExpr.cs
- ZeroOpNode.cs
- _HTTPDateParse.cs
- TypeToTreeConverter.cs
- ActivityCodeDomReferenceService.cs
- AdapterDictionary.cs
- JsonMessageEncoderFactory.cs
- BCLDebug.cs
- DocumentStream.cs
- PolicyManager.cs
- ParentUndoUnit.cs
- DataSourceHelper.cs
- Evaluator.cs
- Point4D.cs
- CodeArrayIndexerExpression.cs
- Button.cs
- StrongNameKeyPair.cs
- Bidi.cs
- StylusDevice.cs
- TextDecorationLocationValidation.cs
- URLString.cs
- SafeIUnknown.cs
- DtrList.cs
- ElementUtil.cs
- EntityClassGenerator.cs
- BuiltInPermissionSets.cs
- SecuritySessionServerSettings.cs
- ImmutableObjectAttribute.cs
- _PooledStream.cs
- Transform3D.cs
- PreservationFileWriter.cs
- ItemCheckEvent.cs
- SqlClientWrapperSmiStreamChars.cs
- LineInfo.cs
- PersonalizationProviderHelper.cs
- MenuItemCollection.cs
- XmlSignatureProperties.cs
- RuleRef.cs
- CodeIdentifiers.cs
- Bezier.cs
- Int32Converter.cs
- ProfileGroupSettings.cs
- Geometry.cs
- AssociationTypeEmitter.cs
- TextReader.cs
- AutomationPattern.cs
- AccessorTable.cs
- OSFeature.cs
- PropertyRecord.cs
- SaveWorkflowCommand.cs
- WebEventTraceProvider.cs
- WindowsSolidBrush.cs
- OleDbSchemaGuid.cs
- SecurityElement.cs
- BaseAutoFormat.cs
- DataGridViewDesigner.cs
- ToolStripSplitButton.cs
- ResizeGrip.cs
- File.cs
- NativeMethods.cs
- SoapExtensionImporter.cs
- smtpconnection.cs
- SafeRightsManagementEnvironmentHandle.cs
- Menu.cs
- OleDbMetaDataFactory.cs
- Label.cs
- ScrollViewerAutomationPeer.cs
- NativeMethodsOther.cs