Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / AmbientProperties.cs / 1 / AmbientProperties.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Copyright (c) 1999, Microsoft Corporation. All Rights Reserved. * Information Contained Herein is Proprietary and Confidential. */ namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Windows.Forms.Design; using System.ComponentModel.Design; using System.Drawing; using Microsoft.Win32; ////// /// // // NOTE: internally, this class does double duty as storage for Control's inherited properties. public sealed class AmbientProperties { // Public ambient properties private Color backColor; private Color foreColor; private Cursor cursor; private Font font; ////// Provides ambient property values to top-level controls. /// ////// /// public Color BackColor { get { return backColor; } set { backColor = value; } } ////// Gets the ambient BackColor, or Color.Empty if there is none. /// ////// /// public Cursor Cursor { get { return cursor; } set { cursor = value; } } ////// Gets the ambient BackColor, or null if there is none. /// ////// /// public Font Font { get { return font; } set { font = value; } } ////// Gets the ambient Font, or null if there is none. /// ////// /// public Color ForeColor { get { return foreColor; } set { foreColor = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Gets the ambient ForeColor, or Color.Empty if there is none. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RemotingSurrogateSelector.cs
- UriParserTemplates.cs
- StylusPointCollection.cs
- TransportManager.cs
- HtmlUtf8RawTextWriter.cs
- DataGridViewColumnCollection.cs
- EncodingDataItem.cs
- WsatServiceAddress.cs
- XamlRtfConverter.cs
- Soap.cs
- SpecularMaterial.cs
- FixedElement.cs
- ExternalCalls.cs
- _SpnDictionary.cs
- SystemNetHelpers.cs
- GiveFeedbackEventArgs.cs
- WebServicesInteroperability.cs
- SchemaNotation.cs
- WebBrowserBase.cs
- mediapermission.cs
- RegexTypeEditor.cs
- XmlTextWriter.cs
- DetailsViewDeleteEventArgs.cs
- CodeExpressionStatement.cs
- PropertySet.cs
- OletxTransactionHeader.cs
- DesigntimeLicenseContext.cs
- DateTimeOffsetAdapter.cs
- ListViewItem.cs
- ThousandthOfEmRealPoints.cs
- ShaderRenderModeValidation.cs
- MimeTypePropertyAttribute.cs
- ClientRoleProvider.cs
- RemotingServices.cs
- XmlQueryContext.cs
- ToolStripTextBox.cs
- IndexOutOfRangeException.cs
- DataGridViewEditingControlShowingEventArgs.cs
- InternalDuplexChannelListener.cs
- GridViewAutomationPeer.cs
- MetadataItem.cs
- GroupQuery.cs
- ReliabilityContractAttribute.cs
- webproxy.cs
- SocketCache.cs
- SubpageParagraph.cs
- SQLString.cs
- Thumb.cs
- DebugInfoExpression.cs
- NativeMethods.cs
- LookupNode.cs
- TreeNodeSelectionProcessor.cs
- DefaultShape.cs
- altserialization.cs
- Accessors.cs
- TabControlCancelEvent.cs
- FlowDocumentReaderAutomationPeer.cs
- GridProviderWrapper.cs
- ObjectContextServiceProvider.cs
- ImageInfo.cs
- SequentialOutput.cs
- MenuAdapter.cs
- StreamGeometry.cs
- TextMetrics.cs
- ArraySortHelper.cs
- SecurityHeader.cs
- Mappings.cs
- SignatureDescription.cs
- CodeSubDirectoriesCollection.cs
- ReachDocumentReferenceSerializerAsync.cs
- LiteralDesigner.cs
- DrawingCollection.cs
- _TimerThread.cs
- CompilerScope.Storage.cs
- UTF7Encoding.cs
- TreeNodeMouseHoverEvent.cs
- Italic.cs
- SpnEndpointIdentity.cs
- ButtonAutomationPeer.cs
- ScopeCollection.cs
- SafeProcessHandle.cs
- TcpPortSharing.cs
- MSAAEventDispatcher.cs
- CompoundFileStreamReference.cs
- DataGridViewComboBoxColumn.cs
- CodeAttachEventStatement.cs
- FormsAuthenticationUserCollection.cs
- Monitor.cs
- TreeViewImageKeyConverter.cs
- ComponentEvent.cs
- WinCategoryAttribute.cs
- TempEnvironment.cs
- UnmanagedMemoryStream.cs
- XmlSchemaSimpleContentRestriction.cs
- ArrayHelper.cs
- FilterQuery.cs
- LinkButton.cs
- SqlExpander.cs
- RepeatInfo.cs
- InstanceView.cs