Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / FrameDimension.cs / 1305376 / 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 class with the specified GUID.
///
public FrameDimension(Guid guid) {
this.guid = 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 equivalent to this .
///
public override bool Equals(object o) {
FrameDimension format = o as FrameDimension;
if (format == null)
return false;
return this.guid == format.guid;
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return guid.GetHashCode();
}
///
///
/// Converts this to a human-readable string.
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OverrideMode.cs
- connectionpool.cs
- DescriptionAttribute.cs
- SchemaImporter.cs
- PieceNameHelper.cs
- LocalizationParserHooks.cs
- FontFamilyIdentifier.cs
- StorageConditionPropertyMapping.cs
- Hex.cs
- ServerIdentity.cs
- PackWebRequestFactory.cs
- TextBoxRenderer.cs
- InteropAutomationProvider.cs
- XmlNavigatorFilter.cs
- HtmlInputText.cs
- ClientSettings.cs
- MenuAdapter.cs
- SoapMessage.cs
- DockingAttribute.cs
- BrushMappingModeValidation.cs
- figurelength.cs
- WebEvents.cs
- ServiceRouteHandler.cs
- DataGridViewCellParsingEventArgs.cs
- CollectionsUtil.cs
- FileUtil.cs
- PaperSource.cs
- ZipFileInfoCollection.cs
- _UncName.cs
- Validator.cs
- DynamicControlParameter.cs
- MatrixTransform3D.cs
- embossbitmapeffect.cs
- StackSpiller.cs
- ZoneButton.cs
- SendingRequestEventArgs.cs
- DefaultAsyncDataDispatcher.cs
- Serializer.cs
- HtmlInputReset.cs
- XmlTextAttribute.cs
- DesignerVerb.cs
- WS2007FederationHttpBindingElement.cs
- RoutedEvent.cs
- ResizeGrip.cs
- LinqDataSource.cs
- HttpPostLocalhostServerProtocol.cs
- QueryCursorEventArgs.cs
- ConnectionManagementSection.cs
- HwndHost.cs
- PathFigureCollectionConverter.cs
- XmlQueryStaticData.cs
- WebReferencesBuildProvider.cs
- DataGridViewRowPostPaintEventArgs.cs
- SqlVisitor.cs
- WebResponse.cs
- RoleGroupCollection.cs
- IDispatchConstantAttribute.cs
- LinkConverter.cs
- HtmlShimManager.cs
- DynamicResourceExtension.cs
- Graphics.cs
- MemberJoinTreeNode.cs
- PolicyChain.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EventLogEntry.cs
- ProfilePropertyNameValidator.cs
- DbModificationCommandTree.cs
- OleDbError.cs
- BinHexEncoder.cs
- Buffer.cs
- TransportReplyChannelAcceptor.cs
- PropertyEmitterBase.cs
- Utility.cs
- EditorServiceContext.cs
- CodeIdentifier.cs
- Vector3DAnimationBase.cs
- QuestionEventArgs.cs
- ClientRuntimeConfig.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ArrayConverter.cs
- Compiler.cs
- PointCollection.cs
- COM2ComponentEditor.cs
- LoginNameDesigner.cs
- SplashScreenNativeMethods.cs
- HostingPreferredMapPath.cs
- TableStyle.cs
- DependencyPropertyAttribute.cs
- ContainsRowNumberChecker.cs
- Grid.cs
- DynamicDataManager.cs
- AnnotationHighlightLayer.cs
- Helper.cs
- DataException.cs
- TdsParserStateObject.cs
- CodeLinePragma.cs
- CodeExporter.cs
- TypeForwardedToAttribute.cs
- RegistrySecurity.cs
- LayoutTableCell.cs