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 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.
//------------------------------------------------------------------------------
//
// 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
- ManagementObjectCollection.cs
- GeometryCollection.cs
- RegexParser.cs
- RuntimeCompatibilityAttribute.cs
- IItemContainerGenerator.cs
- NativeMethods.cs
- TaskHelper.cs
- ObjectItemLoadingSessionData.cs
- DataGridViewCellPaintingEventArgs.cs
- TableCellAutomationPeer.cs
- HttpUnhandledOperationInvoker.cs
- ImageList.cs
- FlowDocumentPaginator.cs
- WindowsFormsSynchronizationContext.cs
- ModelItemImpl.cs
- OdbcPermission.cs
- VisualTreeUtils.cs
- SqlProcedureAttribute.cs
- SecurityHelper.cs
- ObjectListShowCommandsEventArgs.cs
- Int16Animation.cs
- X509Certificate.cs
- DataControlField.cs
- XmlMtomReader.cs
- OdbcConnectionString.cs
- ValidationHelper.cs
- DirectoryNotFoundException.cs
- Int32Rect.cs
- CompensatableSequenceActivity.cs
- TextTrailingCharacterEllipsis.cs
- Resources.Designer.cs
- MemberCollection.cs
- CharacterBuffer.cs
- DebugController.cs
- UserValidatedEventArgs.cs
- TransactionFlowBindingElement.cs
- EventProviderWriter.cs
- DataControlButton.cs
- DataGridViewComboBoxEditingControl.cs
- StreamWriter.cs
- COM2ComponentEditor.cs
- KeyTimeConverter.cs
- RuleSetReference.cs
- FormViewInsertEventArgs.cs
- TerminatorSinks.cs
- EventSourceCreationData.cs
- ISAPIRuntime.cs
- PositiveTimeSpanValidator.cs
- WebControlsSection.cs
- NamespaceEmitter.cs
- CleanUpVirtualizedItemEventArgs.cs
- MimeTextImporter.cs
- CompiledRegexRunner.cs
- RadialGradientBrush.cs
- Attributes.cs
- ViewBox.cs
- CategoryNameCollection.cs
- CodeCatchClause.cs
- FileDialog_Vista.cs
- ColorKeyFrameCollection.cs
- DbProviderServices.cs
- C14NUtil.cs
- DesignerResources.cs
- RubberbandSelector.cs
- AppDomainUnloadedException.cs
- AnnotationStore.cs
- JumpPath.cs
- FixedHighlight.cs
- MembershipSection.cs
- ProxyFragment.cs
- DictionaryBase.cs
- Rect3D.cs
- Vector3dCollection.cs
- PropertyExpression.cs
- RequestBringIntoViewEventArgs.cs
- ToolBarPanel.cs
- MailAddress.cs
- ConnectorMovedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- SettingsPropertyValueCollection.cs
- RelatedEnd.cs
- InputMethodStateChangeEventArgs.cs
- CategoryState.cs
- Pen.cs
- HtmlControlPersistable.cs
- DataObjectCopyingEventArgs.cs
- LogStore.cs
- CallbackDebugBehavior.cs
- CodeTryCatchFinallyStatement.cs
- CurrencyManager.cs
- QilInvoke.cs
- JournalEntry.cs
- DataSourceCache.cs
- SocketInformation.cs
- ReadOnlyNameValueCollection.cs
- FileDialogCustomPlaces.cs
- FastEncoderStatics.cs
- AutomationPatternInfo.cs
- TrackingDataItemValue.cs
- AnnotationHighlightLayer.cs