Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1 / DesignTimeVisibleAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)] public sealed class DesignTimeVisibleAttribute : Attribute { private bool visible; ////// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show /// this component on a designer. /// ////// Creates a new DesignTimeVisibleAttribute with the visible /// property set to the given value. /// public DesignTimeVisibleAttribute(bool visible) { this.visible = visible; } ////// Creates a new DesignTimeVisibleAttribute set to the default /// value of true. /// public DesignTimeVisibleAttribute() { } ////// True if this component should be shown at design time, or false /// if it shouldn't. /// public bool Visible { get { return visible; } } ////// Marks a component as visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute Yes = new DesignTimeVisibleAttribute(true); ////// Marks a component as not visible in a visual designer. /// public static readonly DesignTimeVisibleAttribute No = new DesignTimeVisibleAttribute(false); ////// The default visiblity. (equal to Yes.) /// public static readonly DesignTimeVisibleAttribute Default = Yes; ////// public override bool Equals(object obj) { if (obj == this) { return true; } DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute; return other != null && other.Visible == visible; } ///[To be supplied.] ////// public override int GetHashCode() { return typeof(DesignTimeVisibleAttribute).GetHashCode() ^ (visible ? -1 : 0); } ///[To be supplied.] ////// public override bool IsDefaultAttribute() { return (this.Visible == Default.Visible); } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImmutableCommunicationTimeouts.cs
- UnknownBitmapDecoder.cs
- ScrollBarRenderer.cs
- SocketAddress.cs
- SocketElement.cs
- ExitEventArgs.cs
- XmlUtilWriter.cs
- CompilationRelaxations.cs
- PenCursorManager.cs
- XmlQualifiedName.cs
- Soap.cs
- ModuleBuilderData.cs
- XamlToRtfParser.cs
- EditingScopeUndoUnit.cs
- ZipFileInfo.cs
- SelectionPattern.cs
- DoubleAnimation.cs
- EntityDataSourceViewSchema.cs
- StyleXamlTreeBuilder.cs
- CapacityStreamGeometryContext.cs
- HealthMonitoringSectionHelper.cs
- ArithmeticLiteral.cs
- TextDecoration.cs
- XmlUtil.cs
- Tokenizer.cs
- Reference.cs
- PrintDialogException.cs
- EncoderParameter.cs
- GridViewColumnHeader.cs
- HttpAsyncResult.cs
- DesignerActionItem.cs
- ResXResourceReader.cs
- Font.cs
- RepeaterItem.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CustomLineCap.cs
- OrderByQueryOptionExpression.cs
- CancellationHandlerDesigner.cs
- PageEventArgs.cs
- MonitoringDescriptionAttribute.cs
- DetailsViewActionList.cs
- Mutex.cs
- _ShellExpression.cs
- COSERVERINFO.cs
- Operators.cs
- SpellerStatusTable.cs
- UnauthorizedAccessException.cs
- Matrix.cs
- CodeObjectCreateExpression.cs
- ActiveXSite.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SchemaCollectionCompiler.cs
- CapabilitiesRule.cs
- _LocalDataStoreMgr.cs
- OleDbRowUpdatedEvent.cs
- WebBrowserHelper.cs
- RegularExpressionValidator.cs
- ProfessionalColors.cs
- SafeMarshalContext.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- MetaModel.cs
- TraceEventCache.cs
- InteropBitmapSource.cs
- DataTableCollection.cs
- DrawingGroupDrawingContext.cs
- FlowLayout.cs
- ValueTable.cs
- StylusPointPropertyUnit.cs
- DetailsViewRow.cs
- PingReply.cs
- EntityClassGenerator.cs
- FastEncoder.cs
- IChannel.cs
- EntityViewGenerator.cs
- Permission.cs
- SystemIPAddressInformation.cs
- AsyncCompletedEventArgs.cs
- HwndHost.cs
- PnrpPermission.cs
- RightsManagementEncryptionTransform.cs
- NullNotAllowedCollection.cs
- QueryableDataSourceView.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SqlProvider.cs
- MachineKeyConverter.cs
- TextTreeText.cs
- IProvider.cs
- UpdateCommand.cs
- HtmlInputText.cs
- OleDbWrapper.cs
- AsyncOperation.cs
- Paragraph.cs
- KerberosTokenFactoryCredential.cs
- WebPartCloseVerb.cs
- BitmapInitialize.cs
- GlobalEventManager.cs
- FontSizeConverter.cs
- NameNode.cs
- RelationshipEnd.cs
- WorkflowMarkupSerializationException.cs