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
- UTF8Encoding.cs
- DatatypeImplementation.cs
- CryptoHelper.cs
- Helper.cs
- CardSpaceException.cs
- ReadWriteObjectLock.cs
- Facet.cs
- FormViewInsertedEventArgs.cs
- Rules.cs
- CommandBindingCollection.cs
- SafeNativeMethods.cs
- LinkUtilities.cs
- ToolStripDropDownClosedEventArgs.cs
- TraceContext.cs
- HelpInfo.cs
- BitmapEffectInputConnector.cs
- ButtonChrome.cs
- SolidColorBrush.cs
- Schedule.cs
- DispatchRuntime.cs
- DataGridPagerStyle.cs
- IisTraceWebEventProvider.cs
- RelationshipConverter.cs
- _HeaderInfoTable.cs
- Control.cs
- StandardTransformFactory.cs
- MultipleViewProviderWrapper.cs
- ClientData.cs
- IUnknownConstantAttribute.cs
- SqlRetyper.cs
- DataGridTableCollection.cs
- WebBrowserHelper.cs
- LinqDataSourceHelper.cs
- GroupDescription.cs
- TextEmbeddedObject.cs
- SupportsPreviewControlAttribute.cs
- TextDecorationCollectionConverter.cs
- RelationshipFixer.cs
- TransformCollection.cs
- ControlCollection.cs
- ExternalException.cs
- TextureBrush.cs
- ServiceModelTimeSpanValidator.cs
- CompilerParameters.cs
- RuntimeCompatibilityAttribute.cs
- PeerInvitationResponse.cs
- NativeMethods.cs
- LinqDataSourceEditData.cs
- CaseInsensitiveComparer.cs
- MSAANativeProvider.cs
- ObjectNavigationPropertyMapping.cs
- FatalException.cs
- FileDialogPermission.cs
- Subtree.cs
- BulletChrome.cs
- HtmlTableCell.cs
- OdbcDataAdapter.cs
- RoutedEventConverter.cs
- ServiceOperationViewControl.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- exports.cs
- ActivityFunc.cs
- CharStorage.cs
- TimeSpanStorage.cs
- SafeFileMappingHandle.cs
- DataGridViewColumnConverter.cs
- DrawingImage.cs
- FullTrustAssemblyCollection.cs
- ToolStripItem.cs
- SimpleWorkerRequest.cs
- HideDisabledControlAdapter.cs
- CatalogPart.cs
- DataKeyCollection.cs
- HotCommands.cs
- DataBindingCollectionConverter.cs
- WindowsGraphicsCacheManager.cs
- DataGridAddNewRow.cs
- TableLayoutStyleCollection.cs
- VectorCollection.cs
- TableLayoutStyle.cs
- PropertyTab.cs
- CompoundFileDeflateTransform.cs
- FilePresentation.cs
- KeyValuePairs.cs
- xmlsaver.cs
- XamlToRtfParser.cs
- DeferredRunTextReference.cs
- __Error.cs
- _UriSyntax.cs
- TextParagraphProperties.cs
- SqlRewriteScalarSubqueries.cs
- UrlAuthFailedErrorFormatter.cs
- DataGridViewCellPaintingEventArgs.cs
- Drawing.cs
- TraceHandler.cs
- DeleteHelper.cs
- DataGridViewCellFormattingEventArgs.cs
- ProtocolsConfigurationEntry.cs
- CommandBindingCollection.cs
- ViewGenResults.cs