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 / DockingAttribute.cs / 1 / DockingAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { ////// /// [AttributeUsage(AttributeTargets.Class)] public sealed class DockingAttribute : Attribute { private DockingBehavior dockingBehavior; ////// Specifies how a control should be docked by default when added through the designer. /// ////// /// public DockingAttribute() { this.dockingBehavior = DockingBehavior.Never; } ////// Default constructor. /// ////// /// public DockingAttribute(DockingBehavior dockingBehavior) { this.dockingBehavior = dockingBehavior; } ////// Constructor. /// ////// /// public static readonly DockingAttribute Default = new DockingAttribute(); ////// Specifies the default value for the ///. /// This field is read-only. /// /// /// public DockingBehavior DockingBehavior { get { return dockingBehavior; } } ////// DockingBehavior property. /// ////// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } DockingAttribute other = obj as DockingAttribute; return (other != null) && other.DockingBehavior == this.dockingBehavior; } ////// /// public override int GetHashCode() { return dockingBehavior.GetHashCode(); } ///[To be supplied.] ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // 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
- BinaryObjectWriter.cs
- DataControlCommands.cs
- SamlSerializer.cs
- VerbConverter.cs
- ProfileSettings.cs
- DbConnectionPoolCounters.cs
- StrongNamePublicKeyBlob.cs
- HostProtectionException.cs
- WorkflowRuntimeSection.cs
- SoapSchemaMember.cs
- ReferentialConstraintRoleElement.cs
- StrokeCollectionConverter.cs
- ColumnHeaderConverter.cs
- TcpProcessProtocolHandler.cs
- SchemaDeclBase.cs
- XmlSchemaException.cs
- ValueTypeFixupInfo.cs
- ToolStripContentPanel.cs
- IFlowDocumentViewer.cs
- Validator.cs
- HtmlElement.cs
- HtmlAnchor.cs
- CalendarDay.cs
- EnumValidator.cs
- CodeTypeReferenceExpression.cs
- CheckedPointers.cs
- MonthCalendar.cs
- SQLBytesStorage.cs
- ContainerFilterService.cs
- Vector3D.cs
- Compiler.cs
- IIS7WorkerRequest.cs
- SelectingProviderEventArgs.cs
- mactripleDES.cs
- SchemaTableOptionalColumn.cs
- EventBindingService.cs
- ObjectDisposedException.cs
- VirtualPathUtility.cs
- EntityDataSourceWrapperCollection.cs
- Types.cs
- XMLUtil.cs
- TimeSpan.cs
- ListView.cs
- ByteStreamGeometryContext.cs
- CredentialCache.cs
- IndexedGlyphRun.cs
- Panel.cs
- Speller.cs
- DataGridViewUtilities.cs
- FilterQueryOptionExpression.cs
- TransactedBatchingElement.cs
- TypeUsage.cs
- NumberFormatInfo.cs
- ComPlusServiceLoader.cs
- FixedStringLookup.cs
- AttributeProviderAttribute.cs
- FormatPage.cs
- ToggleButtonAutomationPeer.cs
- WorkflowServiceNamespace.cs
- UseLicense.cs
- XPathAxisIterator.cs
- WmpBitmapDecoder.cs
- FlowDocumentPaginator.cs
- TemplatePagerField.cs
- Panel.cs
- CapacityStreamGeometryContext.cs
- ByteStorage.cs
- XmlTextAttribute.cs
- GridViewPageEventArgs.cs
- D3DImage.cs
- ModuleBuilder.cs
- documentsequencetextview.cs
- TextBox.cs
- GestureRecognizer.cs
- MsmqIntegrationValidationBehavior.cs
- ListItemConverter.cs
- CssClassPropertyAttribute.cs
- UnmanagedBitmapWrapper.cs
- SessionState.cs
- InteropDesigner.xaml.cs
- Soap.cs
- ConstantSlot.cs
- MasterPageBuildProvider.cs
- QueryOutputWriter.cs
- Pair.cs
- EpmAttributeNameBuilder.cs
- FusionWrap.cs
- GrammarBuilderDictation.cs
- DataGridPageChangedEventArgs.cs
- RelativeSource.cs
- PanelStyle.cs
- SignerInfo.cs
- KeySplineConverter.cs
- HMACSHA512.cs
- EntityCollectionChangedParams.cs
- GlobalEventManager.cs
- ConfigurationPropertyCollection.cs
- RuntimeConfigLKG.cs
- PathSegmentCollection.cs
- CompilationRelaxations.cs