Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompoundFileIOPermission.cs
- DbMetaDataColumnNames.cs
- CompilerLocalReference.cs
- TemplateField.cs
- VariableAction.cs
- FileDialog_Vista_Interop.cs
- DataPagerField.cs
- BinaryKeyIdentifierClause.cs
- NullableFloatAverageAggregationOperator.cs
- HttpsChannelFactory.cs
- SqlDataAdapter.cs
- EditableTreeList.cs
- UIElementHelper.cs
- NeutralResourcesLanguageAttribute.cs
- CompositeDataBoundControl.cs
- ConnectionPoint.cs
- PasswordPropertyTextAttribute.cs
- MsmqTransportSecurityElement.cs
- CodeSnippetStatement.cs
- CancellableEnumerable.cs
- Events.cs
- EqualityComparer.cs
- PriorityItem.cs
- X509SecurityToken.cs
- Console.cs
- ChannelSinkStacks.cs
- AudioException.cs
- AttachInfo.cs
- StringExpressionSet.cs
- TimelineGroup.cs
- OleDbError.cs
- SynchronizedDispatch.cs
- DomNameTable.cs
- CalendarDateRangeChangingEventArgs.cs
- Button.cs
- AppliedDeviceFiltersDialog.cs
- TaskResultSetter.cs
- HtmlContainerControl.cs
- SqlInfoMessageEvent.cs
- HttpConfigurationSystem.cs
- ApplicationBuildProvider.cs
- Component.cs
- MailBnfHelper.cs
- DiscoveryExceptionDictionary.cs
- ActiveDocumentEvent.cs
- CookieParameter.cs
- PasswordPropertyTextAttribute.cs
- ToolZone.cs
- Rectangle.cs
- GeneralTransform2DTo3DTo2D.cs
- Journal.cs
- ProcessHost.cs
- FileDialog.cs
- HandlerMappingMemo.cs
- WebPartEditorApplyVerb.cs
- DynamicRendererThreadManager.cs
- TimeoutException.cs
- CollectionView.cs
- SimpleFileLog.cs
- GorillaCodec.cs
- ReachUIElementCollectionSerializer.cs
- HelpEvent.cs
- IncrementalReadDecoders.cs
- XmlSchemaSimpleContent.cs
- Stacktrace.cs
- DeleteBookmarkScope.cs
- Encoding.cs
- GenericWebPart.cs
- MexBindingBindingCollectionElement.cs
- Serializer.cs
- AliasedSlot.cs
- ComplexTypeEmitter.cs
- LinkLabelLinkClickedEvent.cs
- CfgSemanticTag.cs
- BinHexEncoder.cs
- QueryableDataSource.cs
- ItemCheckedEvent.cs
- HttpCacheParams.cs
- InheritanceContextChangedEventManager.cs
- BorderGapMaskConverter.cs
- MouseGestureConverter.cs
- CqlLexerHelpers.cs
- Publisher.cs
- SystemUdpStatistics.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XappLauncher.cs
- ObjectAssociationEndMapping.cs
- ButtonField.cs
- LineMetrics.cs
- BaseAddressElementCollection.cs
- FormsAuthenticationConfiguration.cs
- MemberInfoSerializationHolder.cs
- CFStream.cs
- TrustLevelCollection.cs
- SafeUserTokenHandle.cs
- RefreshInfo.cs
- RelatedImageListAttribute.cs
- BmpBitmapDecoder.cs
- ReflectionPermission.cs
- NullExtension.cs