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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlXml.cs
- SqlFunctionAttribute.cs
- ParentQuery.cs
- UIElementParagraph.cs
- Color.cs
- RTTypeWrapper.cs
- ServiceReflector.cs
- KeysConverter.cs
- FrameworkPropertyMetadata.cs
- QueryTaskGroupState.cs
- SafeLocalMemHandle.cs
- TextParagraphView.cs
- RequestDescription.cs
- SoapFault.cs
- SourceElementsCollection.cs
- RepeaterItemCollection.cs
- PartialArray.cs
- MeasurementDCInfo.cs
- DataGridViewColumnStateChangedEventArgs.cs
- PropertyPathConverter.cs
- _FtpDataStream.cs
- IfAction.cs
- MethodBuilder.cs
- RepeatButton.cs
- Int32.cs
- DescriptionAttribute.cs
- ItemsPanelTemplate.cs
- xmlglyphRunInfo.cs
- DbBuffer.cs
- PlainXmlSerializer.cs
- DesignerAdapterUtil.cs
- UpdatePanelTriggerCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- Transform3D.cs
- ApplicationServiceHelper.cs
- Int32CollectionConverter.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ByteKeyFrameCollection.cs
- TimelineClockCollection.cs
- BinaryObjectInfo.cs
- QueryableFilterRepeater.cs
- ServerReliableChannelBinder.cs
- ButtonFieldBase.cs
- PersonalizationProviderHelper.cs
- ValueChangedEventManager.cs
- MetadataLocation.cs
- Hash.cs
- ButtonColumn.cs
- BackgroundFormatInfo.cs
- CodeDefaultValueExpression.cs
- FixedSOMPage.cs
- CookielessHelper.cs
- ManagedFilter.cs
- TextParagraphProperties.cs
- ValueChangedEventManager.cs
- ArcSegment.cs
- OutOfProcStateClientManager.cs
- DataListItem.cs
- ChameleonKey.cs
- HttpProtocolImporter.cs
- SessionIDManager.cs
- Rect3DValueSerializer.cs
- EventMap.cs
- XmlSchemaSimpleTypeRestriction.cs
- _AutoWebProxyScriptEngine.cs
- Maps.cs
- SchemaImporterExtension.cs
- AutomationElementIdentifiers.cs
- OpenFileDialog.cs
- DbSourceCommand.cs
- PointLight.cs
- HyperLinkColumn.cs
- JulianCalendar.cs
- ObjectStateEntryDbDataRecord.cs
- DropShadowEffect.cs
- EntityDesignerBuildProvider.cs
- SessionStateContainer.cs
- ObjectMaterializedEventArgs.cs
- ExpressionConverter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- latinshape.cs
- RequestQueue.cs
- SHA1Managed.cs
- SafeRegistryHandle.cs
- ScriptingAuthenticationServiceSection.cs
- SystemTcpStatistics.cs
- Base64Decoder.cs
- HitTestDrawingContextWalker.cs
- sqlstateclientmanager.cs
- MatcherBuilder.cs
- QueryableDataSourceView.cs
- XNodeNavigator.cs
- TextRangeEdit.cs
- TextEmbeddedObject.cs
- hwndwrapper.cs
- TextControlDesigner.cs
- BaseParagraph.cs
- RemoteEndpointMessageProperty.cs
- InvokeWebServiceDesigner.cs
- ImpersonateTokenRef.cs