Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / VScrollBar.cs / 1305376 / 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
- mediapermission.cs
- ControlParser.cs
- LabelAutomationPeer.cs
- MemberAccessException.cs
- BitConverter.cs
- _HTTPDateParse.cs
- XmlSchemaNotation.cs
- ObjectParameter.cs
- PartitionResolver.cs
- Vector3DValueSerializer.cs
- Soap12ProtocolImporter.cs
- ErrorLog.cs
- CodeSnippetStatement.cs
- TextTreeObjectNode.cs
- MD5CryptoServiceProvider.cs
- DesignerAdapterUtil.cs
- SafeFileMapViewHandle.cs
- ListViewItem.cs
- SoapAttributeOverrides.cs
- XsltContext.cs
- PolicyException.cs
- WebPartEditorApplyVerb.cs
- StringTraceRecord.cs
- BaseTransportHeaders.cs
- UniqueEventHelper.cs
- SqlBuilder.cs
- StringKeyFrameCollection.cs
- ToolStripItemBehavior.cs
- xamlnodes.cs
- SimpleTypeResolver.cs
- SqlGatherConsumedAliases.cs
- AutoSizeComboBox.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WmlMobileTextWriter.cs
- TypeGeneratedEventArgs.cs
- GroupItem.cs
- CompletedAsyncResult.cs
- Point3D.cs
- SessionStateModule.cs
- AdornerLayer.cs
- PresentationAppDomainManager.cs
- FixedSOMPage.cs
- EntityDataReader.cs
- EqualityComparer.cs
- FontUnitConverter.cs
- AuthenticationException.cs
- TableLayoutPanelCellPosition.cs
- XomlDesignerLoader.cs
- SafeCryptContextHandle.cs
- Int32.cs
- SHA256.cs
- OlePropertyStructs.cs
- IdentityManager.cs
- UriWriter.cs
- SymLanguageVendor.cs
- QilStrConcatenator.cs
- XpsS0ValidatingLoader.cs
- FrameAutomationPeer.cs
- DefaultValidator.cs
- EntryWrittenEventArgs.cs
- QilInvokeLateBound.cs
- HttpFileCollection.cs
- OptimalTextSource.cs
- RtType.cs
- ListItemCollection.cs
- TypeReference.cs
- _ServiceNameStore.cs
- DoubleLink.cs
- FontCacheUtil.cs
- DbDataAdapter.cs
- SqlExpander.cs
- BinaryMethodMessage.cs
- EdmItemCollection.cs
- BinaryWriter.cs
- DataGridViewSelectedCellCollection.cs
- UserControlBuildProvider.cs
- InputDevice.cs
- WpfKnownMember.cs
- OneOf.cs
- EDesignUtil.cs
- OracleCommandBuilder.cs
- _SafeNetHandles.cs
- BitmapEffectInputData.cs
- XmlUrlResolver.cs
- Set.cs
- RuntimeHandles.cs
- WebBrowserHelper.cs
- BuildTopDownAttribute.cs
- Rotation3DKeyFrameCollection.cs
- OleDbInfoMessageEvent.cs
- ListParaClient.cs
- MultiBindingExpression.cs
- ToolStripRendererSwitcher.cs
- XmlImplementation.cs
- DataSourceXmlClassAttribute.cs
- UxThemeWrapper.cs
- IndexObject.cs
- HostingEnvironmentException.cs
- EventPropertyMap.cs
- CacheMemory.cs