Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DesignTimeVisibleAttribute.cs / 1305376 / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridItemCollection.cs
- Message.cs
- Stacktrace.cs
- Image.cs
- COM2ComponentEditor.cs
- PermissionSetTriple.cs
- AvtEvent.cs
- ScaleTransform3D.cs
- WebConfigurationFileMap.cs
- PopupRootAutomationPeer.cs
- ConfigurationSectionCollection.cs
- TiffBitmapDecoder.cs
- VerificationAttribute.cs
- InfoCardTraceRecord.cs
- TextInfo.cs
- DiscreteKeyFrames.cs
- EdmComplexTypeAttribute.cs
- ColorConverter.cs
- CodePropertyReferenceExpression.cs
- Config.cs
- IteratorDescriptor.cs
- SoapCodeExporter.cs
- CroppedBitmap.cs
- clipboard.cs
- SafeCancelMibChangeNotify.cs
- MetaModel.cs
- TextBoxAutoCompleteSourceConverter.cs
- BeginEvent.cs
- OrElse.cs
- DataTrigger.cs
- PartDesigner.cs
- PartialTrustVisibleAssemblyCollection.cs
- Style.cs
- ReliableMessagingVersionConverter.cs
- ZoneButton.cs
- SHA512Managed.cs
- HostExecutionContextManager.cs
- DesignerActionService.cs
- CodeMemberProperty.cs
- CompleteWizardStep.cs
- SqlMethodCallConverter.cs
- MissingMemberException.cs
- FrameworkRichTextComposition.cs
- LongTypeConverter.cs
- ContainerActivationHelper.cs
- MultipartIdentifier.cs
- NamespaceMapping.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DependencyPropertyHelper.cs
- ResourcePermissionBase.cs
- DoubleAverageAggregationOperator.cs
- DispatchWrapper.cs
- TextTabProperties.cs
- TemplateXamlParser.cs
- TransformValueSerializer.cs
- AnnotationComponentChooser.cs
- FunctionDetailsReader.cs
- DataGridViewColumnDesigner.cs
- MetadataArtifactLoaderCompositeResource.cs
- ResourceSetExpression.cs
- SrgsRule.cs
- SpeechAudioFormatInfo.cs
- EntityContainerAssociationSet.cs
- Brush.cs
- TypeReference.cs
- ImageMapEventArgs.cs
- QualificationDataItem.cs
- SafeNativeMethods.cs
- TabItem.cs
- SessionStateItemCollection.cs
- DataColumnChangeEvent.cs
- precedingquery.cs
- Button.cs
- SingleBodyParameterMessageFormatter.cs
- HttpListenerElement.cs
- TextParentUndoUnit.cs
- XmlSchemaAttributeGroupRef.cs
- DeliveryRequirementsAttribute.cs
- PathFigureCollectionConverter.cs
- BooleanKeyFrameCollection.cs
- SafeUserTokenHandle.cs
- XmlReaderSettings.cs
- RoutedEventValueSerializer.cs
- XmlPreloadedResolver.cs
- InternalResources.cs
- ScrollViewerAutomationPeer.cs
- HttpCachePolicyElement.cs
- XmlSerializerNamespaces.cs
- OutOfMemoryException.cs
- ParserOptions.cs
- XPathNavigator.cs
- EdmSchemaAttribute.cs
- OperatorExpressions.cs
- TableLayoutStyleCollection.cs
- RuntimeWrappedException.cs
- PathGeometry.cs
- BaseDataListPage.cs
- WebHttpBindingCollectionElement.cs
- IdentityModelStringsVersion1.cs
- StringValueConverter.cs