Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Advanced / FrameDimension.cs / 1 / FrameDimension.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Imaging { using System; using System.Diagnostics; using System.Drawing; using System.ComponentModel; /** * frame dimension constants (used with Bitmap.FrameDimensionsList) */ ////// /// /// // [TypeConverterAttribute(typeof(FrameDimensionConverter))] public sealed class FrameDimension { // Frame dimension GUIDs, from sdkinc\imgguids.h private static FrameDimension time = new FrameDimension(new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}")); private static FrameDimension resolution = new FrameDimension(new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}")); private static FrameDimension page = new FrameDimension(new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}")); private Guid guid; ////// /// Initializes a new instance of the public FrameDimension(Guid guid) { this.guid = guid; } ///class with the specified GUID. /// /// /// Specifies a global unique identifier (GUID) /// that represents this public Guid Guid { get { return guid;} } ///. /// /// /// The time dimension. /// public static FrameDimension Time { get { return time;} } ////// /// The resolution dimension. /// public static FrameDimension Resolution { get { return resolution;} } ////// /// The page dimension. /// public static FrameDimension Page { get { return page;} } ////// /// Returns a value indicating whether the /// specified object is an public override bool Equals(object o) { FrameDimension format = o as FrameDimension; if (format == null) return false; return this.guid == format.guid; } ///equivalent to this . /// /// /// public override int GetHashCode() { return guid.GetHashCode(); } ///[To be supplied.] ////// /// Converts this public override string ToString() { if (this == time) return "Time"; if (this == resolution) return "Resolution"; if (this == page) return "Page"; return "[FrameDimension: " + guid + "]"; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //to a human-readable string. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Imaging { using System; using System.Diagnostics; using System.Drawing; using System.ComponentModel; /** * frame dimension constants (used with Bitmap.FrameDimensionsList) */ ////// /// /// // [TypeConverterAttribute(typeof(FrameDimensionConverter))] public sealed class FrameDimension { // Frame dimension GUIDs, from sdkinc\imgguids.h private static FrameDimension time = new FrameDimension(new Guid("{6aedbd6d-3fb5-418a-83a6-7f45229dc872}")); private static FrameDimension resolution = new FrameDimension(new Guid("{84236f7b-3bd3-428f-8dab-4ea1439ca315}")); private static FrameDimension page = new FrameDimension(new Guid("{7462dc86-6180-4c7e-8e3f-ee7333a7a483}")); private Guid guid; ////// /// Initializes a new instance of the public FrameDimension(Guid guid) { this.guid = guid; } ///class with the specified GUID. /// /// /// Specifies a global unique identifier (GUID) /// that represents this public Guid Guid { get { return guid;} } ///. /// /// /// The time dimension. /// public static FrameDimension Time { get { return time;} } ////// /// The resolution dimension. /// public static FrameDimension Resolution { get { return resolution;} } ////// /// The page dimension. /// public static FrameDimension Page { get { return page;} } ////// /// Returns a value indicating whether the /// specified object is an public override bool Equals(object o) { FrameDimension format = o as FrameDimension; if (format == null) return false; return this.guid == format.guid; } ///equivalent to this . /// /// /// public override int GetHashCode() { return guid.GetHashCode(); } ///[To be supplied.] ////// /// Converts this public override string ToString() { if (this == time) return "Time"; if (this == resolution) return "Resolution"; if (this == page) return "Page"; return "[FrameDimension: " + guid + "]"; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.to a human-readable string. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509Extension.cs
- DrawingImage.cs
- SafeFileMappingHandle.cs
- WebPartCollection.cs
- CachedFontFamily.cs
- XmlDocumentFragment.cs
- BrushValueSerializer.cs
- FixedPageStructure.cs
- BoundField.cs
- AssociatedControlConverter.cs
- HttpCookie.cs
- ReadOnlyDictionary.cs
- ToolStripInSituService.cs
- Win32MouseDevice.cs
- UxThemeWrapper.cs
- Label.cs
- WaitHandleCannotBeOpenedException.cs
- FixedHighlight.cs
- AvTraceFormat.cs
- HtmlInputButton.cs
- RouteData.cs
- Accessible.cs
- HTMLTagNameToTypeMapper.cs
- EncoderFallback.cs
- AlternateViewCollection.cs
- SecurityProtocolFactory.cs
- FixUpCollection.cs
- UniqueEventHelper.cs
- OutOfMemoryException.cs
- processwaithandle.cs
- SafeThemeHandle.cs
- BuildResultCache.cs
- TaskExtensions.cs
- FlowPosition.cs
- Content.cs
- BinHexEncoder.cs
- EntityContainerEmitter.cs
- MarkupCompilePass1.cs
- ProtocolsConfigurationHandler.cs
- Line.cs
- CompilerResults.cs
- DataKeyArray.cs
- HttpListenerPrefixCollection.cs
- XmlArrayItemAttributes.cs
- MethodRental.cs
- XmlAttribute.cs
- Simplifier.cs
- TagMapCollection.cs
- EncoderReplacementFallback.cs
- shaper.cs
- DbTransaction.cs
- ServiceNameCollection.cs
- AggregatePushdown.cs
- RpcResponse.cs
- MetafileHeaderWmf.cs
- RegisteredArrayDeclaration.cs
- XmlSchemaComplexContentRestriction.cs
- AppDomainShutdownMonitor.cs
- CompatibleIComparer.cs
- GridViewSelectEventArgs.cs
- _ConnectStream.cs
- FormViewInsertEventArgs.cs
- XmlTextWriter.cs
- DesignerDataTable.cs
- ConfigurationPropertyAttribute.cs
- InternalPolicyElement.cs
- Timer.cs
- _NestedMultipleAsyncResult.cs
- TypeSystem.cs
- DataMemberConverter.cs
- FlowSwitch.cs
- PropertyPathWorker.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- DelayLoadType.cs
- DeploymentSectionCache.cs
- EncryptedPackage.cs
- SchemaMapping.cs
- RadioButtonBaseAdapter.cs
- PrimitiveType.cs
- DataGridViewCell.cs
- __ComObject.cs
- ShapingWorkspace.cs
- CompositeTypefaceMetrics.cs
- Transform3D.cs
- CallInfo.cs
- QuaternionRotation3D.cs
- StateDesigner.TransitionInfo.cs
- ConfigXmlCDataSection.cs
- _Win32.cs
- XPathNavigatorReader.cs
- SafeUserTokenHandle.cs
- XmlSchemaCompilationSettings.cs
- AspNetSynchronizationContext.cs
- AsyncContentLoadedEventArgs.cs
- ProgramPublisher.cs
- CollectionExtensions.cs
- DataGridViewRowPrePaintEventArgs.cs
- WebServiceTypeData.cs
- RequestStatusBarUpdateEventArgs.cs
- DCSafeHandle.cs