Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Int32Rect.cs / 1 / Int32Rect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001, 2002 // // File: Int32Rect.cs //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Text; using System.Collections; using System.Globalization; using MS.Internal; using System.Windows; using System.Windows.Media; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; namespace System.Windows { ////// Int32Rect - The primitive which represents an integer rectangle. /// public partial struct Int32Rect { #region Constructors ////// Constructor which sets the initial values to the values of the parameters. /// public Int32Rect(Int32 x, Int32 y, Int32 width, Int32 height) { _x = x; _y = y; _width = width; _height = height; } #endregion Constructors #region Statics ////// Empty - a static property which provides an Empty Int32Rectangle. /// public static Int32Rect Empty { get { return s_empty; } } #endregion Statics #region Public Properties ////// IsEmpty - this returns true if this Int32Rect is the Empty integer rectangle. /// public bool IsEmpty { get { return (_x == 0) && (_y == 0) && (_width == 0) && (_height == 0); } } #endregion Public Properties #region Public Methods #endregion Private Methods #region Private Fields private readonly static Int32Rect s_empty = new Int32Rect(0,0,0,0); #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001, 2002 // // File: Int32Rect.cs //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Text; using System.Collections; using System.Globalization; using MS.Internal; using System.Windows; using System.Windows.Media; using System.Runtime.InteropServices; using System.Security; using System.Security.Permissions; namespace System.Windows { ////// Int32Rect - The primitive which represents an integer rectangle. /// public partial struct Int32Rect { #region Constructors ////// Constructor which sets the initial values to the values of the parameters. /// public Int32Rect(Int32 x, Int32 y, Int32 width, Int32 height) { _x = x; _y = y; _width = width; _height = height; } #endregion Constructors #region Statics ////// Empty - a static property which provides an Empty Int32Rectangle. /// public static Int32Rect Empty { get { return s_empty; } } #endregion Statics #region Public Properties ////// IsEmpty - this returns true if this Int32Rect is the Empty integer rectangle. /// public bool IsEmpty { get { return (_x == 0) && (_y == 0) && (_width == 0) && (_height == 0); } } #endregion Public Properties #region Public Methods #endregion Private Methods #region Private Fields private readonly static Int32Rect s_empty = new Int32Rect(0,0,0,0); #endregion Private Fields } } // 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
- XDeferredAxisSource.cs
- PageParserFilter.cs
- IPCCacheManager.cs
- ApplicationInfo.cs
- ImageAutomationPeer.cs
- LogLogRecordHeader.cs
- WorkflowEventArgs.cs
- ChildTable.cs
- BaseCAMarshaler.cs
- PbrsForward.cs
- Border.cs
- CustomTypeDescriptor.cs
- SupportingTokenParameters.cs
- validation.cs
- ButtonAutomationPeer.cs
- Trace.cs
- Missing.cs
- ITextView.cs
- EventWaitHandleSecurity.cs
- ScrollBarRenderer.cs
- TemplatedMailWebEventProvider.cs
- EventListener.cs
- MatrixIndependentAnimationStorage.cs
- ToolStripOverflowButton.cs
- WSSecureConversationDec2005.cs
- GeometryModel3D.cs
- Main.cs
- RuntimeWrappedException.cs
- String.cs
- NativeMethods.cs
- CellTreeNodeVisitors.cs
- AsymmetricKeyExchangeFormatter.cs
- XsltOutput.cs
- PersianCalendar.cs
- ArrangedElementCollection.cs
- HttpListenerContext.cs
- ScriptControlDescriptor.cs
- SelectedPathEditor.cs
- _KerberosClient.cs
- AtomParser.cs
- RtfControls.cs
- DelegateBodyWriter.cs
- ConfigurationSection.cs
- ObjectRef.cs
- SerializationObjectManager.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- IntSecurity.cs
- XmlUtilWriter.cs
- DataControlReferenceCollection.cs
- AspCompat.cs
- XmlNodeChangedEventArgs.cs
- NextPreviousPagerField.cs
- RawStylusSystemGestureInputReport.cs
- ControlEvent.cs
- DelayedRegex.cs
- ComplexTypeEmitter.cs
- DataServiceConfiguration.cs
- TextRangeEditTables.cs
- SqlDataSourceRefreshSchemaForm.cs
- ObfuscateAssemblyAttribute.cs
- BitmapInitialize.cs
- InternalBufferOverflowException.cs
- QueryParameter.cs
- VisualTreeUtils.cs
- DecoderExceptionFallback.cs
- PrinterSettings.cs
- FileSystemEventArgs.cs
- FloaterBaseParaClient.cs
- StylusShape.cs
- OrderPreservingPipeliningSpoolingTask.cs
- TriggerBase.cs
- ContextBase.cs
- KnownIds.cs
- SystemIPInterfaceProperties.cs
- XmlBinaryReader.cs
- XPathDocumentBuilder.cs
- TextEditorCharacters.cs
- AuthorizationSection.cs
- Transactions.cs
- Expander.cs
- StateMachineSubscription.cs
- EntityDataSourceDesignerHelper.cs
- DataGridViewCellValidatingEventArgs.cs
- XmlSchemaComplexContent.cs
- LZCodec.cs
- SafeLocalMemHandle.cs
- TemplateContent.cs
- CustomErrorsSection.cs
- MobileFormsAuthentication.cs
- ConnectionInterfaceCollection.cs
- ConfigurationFileMap.cs
- RadioButtonFlatAdapter.cs
- TextChange.cs
- DownloadProgressEventArgs.cs
- TextContainer.cs
- FrameworkPropertyMetadata.cs
- FixedHighlight.cs
- DiffuseMaterial.cs
- ModuleBuilder.cs
- DesignerActionListCollection.cs