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
- XmlReaderSettings.cs
- Rotation3D.cs
- Internal.cs
- WsdlHelpGeneratorElement.cs
- Compress.cs
- TdsParserStaticMethods.cs
- UniqueIdentifierService.cs
- TrustSection.cs
- Currency.cs
- RegisteredScript.cs
- CodePageEncoding.cs
- CodeSubDirectoriesCollection.cs
- RelatedView.cs
- FirewallWrapper.cs
- Command.cs
- HtmlInputImage.cs
- EncoderNLS.cs
- SemanticBasicElement.cs
- AppSettingsExpressionBuilder.cs
- StateWorkerRequest.cs
- DesignBindingValueUIHandler.cs
- DataGridPageChangedEventArgs.cs
- XmlWrappingReader.cs
- AssociationType.cs
- EventRouteFactory.cs
- Hyperlink.cs
- Configuration.cs
- ArrayExtension.cs
- XslTransform.cs
- Model3D.cs
- MenuRendererClassic.cs
- XmlSchemaValidator.cs
- FontDriver.cs
- DecoderExceptionFallback.cs
- regiisutil.cs
- ClipboardData.cs
- SessionStateModule.cs
- ProvidePropertyAttribute.cs
- ToolStripDropDown.cs
- ConnectionProviderAttribute.cs
- PathGradientBrush.cs
- XmlSchemaGroup.cs
- PerfService.cs
- SqlUserDefinedAggregateAttribute.cs
- ScrollChrome.cs
- Light.cs
- ComponentSerializationService.cs
- ObjectQuery.cs
- MulticastOption.cs
- TextTreeExtractElementUndoUnit.cs
- RSAPKCS1SignatureDeformatter.cs
- DataKeyCollection.cs
- PolicyUtility.cs
- Popup.cs
- EasingKeyFrames.cs
- TreeViewHitTestInfo.cs
- CachedFontFace.cs
- ErrorHandler.cs
- PrintPreviewGraphics.cs
- SamlSerializer.cs
- FileFormatException.cs
- DBSqlParser.cs
- Hashtable.cs
- SqlConnectionString.cs
- CapabilitiesUse.cs
- OleDbEnumerator.cs
- GridViewHeaderRowPresenter.cs
- StrokeNodeOperations.cs
- ReferencedAssemblyResolver.cs
- XmlWriterSettings.cs
- SqlGenericUtil.cs
- GCHandleCookieTable.cs
- BaseComponentEditor.cs
- ProfilePropertySettingsCollection.cs
- MenuItemCollection.cs
- DrawingContext.cs
- TransformationRules.cs
- metadatamappinghashervisitor.cs
- ScriptControlDescriptor.cs
- ProcessProtocolHandler.cs
- ProfilePropertyNameValidator.cs
- EmbeddedMailObjectsCollection.cs
- SchemaCollectionCompiler.cs
- ExtendedPropertyDescriptor.cs
- HelpInfo.cs
- XmlDataCollection.cs
- LinkUtilities.cs
- SqlProcedureAttribute.cs
- HelpKeywordAttribute.cs
- HelloMessage11.cs
- SerializationStore.cs
- Maps.cs
- Help.cs
- JumpItem.cs
- VisualBrush.cs
- Link.cs
- Storyboard.cs
- AutomationPattern.cs
- ProgressBarRenderer.cs
- PropertyValueChangedEvent.cs