Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollBar.cs / 1 / VScrollBar.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Security.Permissions; using System.Windows.Forms; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [SRDescription(SR.DescriptionVScrollBar)] public class VScrollBar : ScrollBar { ///Represents /// a standard Windows vertical scroll bar. ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_VERT; return cp; } } ////// Returns the parameters needed to create the handle. Inheriting classes /// can override this to provide extra functionality. They should not, /// however, forget to call base.getCreateParams() first to get the struct /// filled up with the basic info. /// ////// /// Deriving classes can override this to configure a default size for their control. /// This is more efficient than setting the size in the control's constructor. /// protected override Size DefaultSize { get { return new Size(SystemInformation.VerticalScrollBarWidth, 80); } } ////// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override RightToLeft RightToLeft { get { return RightToLeft.No; } set { } } ////// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RightToLeftChanged { add { base.RightToLeftChanged += value; } remove { base.RightToLeftChanged -= 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.Diagnostics; using System; using System.Security.Permissions; using System.Windows.Forms; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [SRDescription(SR.DescriptionVScrollBar)] public class VScrollBar : ScrollBar { ///Represents /// a standard Windows vertical scroll bar. ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_VERT; return cp; } } ////// Returns the parameters needed to create the handle. Inheriting classes /// can override this to provide extra functionality. They should not, /// however, forget to call base.getCreateParams() first to get the struct /// filled up with the basic info. /// ////// /// Deriving classes can override this to configure a default size for their control. /// This is more efficient than setting the size in the control's constructor. /// protected override Size DefaultSize { get { return new Size(SystemInformation.VerticalScrollBarWidth, 80); } } ////// /// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public override RightToLeft RightToLeft { get { return RightToLeft.No; } set { } } ////// [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new event EventHandler RightToLeftChanged { add { base.RightToLeftChanged += value; } remove { base.RightToLeftChanged -= 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
- StylusPlugin.cs
- StandardRuntimeEnumValidator.cs
- FixedHyperLink.cs
- IPipelineRuntime.cs
- UserControl.cs
- DynamicRenderer.cs
- SecurityContextSecurityTokenResolver.cs
- PointLightBase.cs
- RoleBoolean.cs
- WebPartZoneCollection.cs
- OutKeywords.cs
- TypeUtils.cs
- precedingsibling.cs
- XmlQualifiedName.cs
- CompilerError.cs
- CurrencyWrapper.cs
- FusionWrap.cs
- PeerOutputChannel.cs
- TextEmbeddedObject.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ImportOptions.cs
- PenLineCapValidation.cs
- AbsoluteQuery.cs
- InkCollectionBehavior.cs
- Rotation3DKeyFrameCollection.cs
- HandledMouseEvent.cs
- StrongNameUtility.cs
- ProcessModelSection.cs
- AdPostCacheSubstitution.cs
- Pts.cs
- Transform3DGroup.cs
- Point3D.cs
- CollectionBase.cs
- ConcatQueryOperator.cs
- MessageRpc.cs
- MenuItem.cs
- QueueTransferProtocol.cs
- TimeSpanMinutesConverter.cs
- Function.cs
- RelationshipConverter.cs
- CubicEase.cs
- QilStrConcatenator.cs
- SmiEventSink_Default.cs
- InvocationExpression.cs
- Region.cs
- StrokeNodeOperations.cs
- InputBuffer.cs
- MessageLogger.cs
- ConversionContext.cs
- ImpersonateTokenRef.cs
- RoleGroupCollection.cs
- SmiEventStream.cs
- SignatureResourcePool.cs
- DataGridViewImageColumn.cs
- RemoteDebugger.cs
- SaveFileDialog.cs
- ReadOnlyDictionary.cs
- RequestSecurityTokenForGetBrowserToken.cs
- Evidence.cs
- BuildResultCache.cs
- CharKeyFrameCollection.cs
- InfoCardCryptoHelper.cs
- LinqDataSourceSelectEventArgs.cs
- SmtpCommands.cs
- Vector.cs
- ToolStripSystemRenderer.cs
- SqlNotificationRequest.cs
- SerializationHelper.cs
- DataTableReader.cs
- SmiTypedGetterSetter.cs
- GridViewRowEventArgs.cs
- ViewBase.cs
- DataServiceEntityAttribute.cs
- ThousandthOfEmRealDoubles.cs
- InvalidPropValue.cs
- CrossAppDomainChannel.cs
- FormViewModeEventArgs.cs
- TableLayout.cs
- safelink.cs
- CodeVariableDeclarationStatement.cs
- SamlSubjectStatement.cs
- iisPickupDirectory.cs
- LinkedResourceCollection.cs
- HttpFileCollectionBase.cs
- WsatServiceCertificate.cs
- dataobject.cs
- SimpleFieldTemplateUserControl.cs
- TableRowsCollectionEditor.cs
- NetworkInformationPermission.cs
- DesignerWidgets.cs
- Token.cs
- SecureConversationServiceElement.cs
- PeerDuplexChannelListener.cs
- COM2ExtendedTypeConverter.cs
- ContextStaticAttribute.cs
- WebBrowserContainer.cs
- FlowLayoutPanel.cs
- ModuleBuilder.cs
- DocumentPageHost.cs
- CodeMethodReturnStatement.cs