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 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
- UpDownBase.cs
- HttpRequest.cs
- IFlowDocumentViewer.cs
- XpsResource.cs
- UnauthorizedAccessException.cs
- AttachedPropertyInfo.cs
- PropertyGridView.cs
- DataTableNewRowEvent.cs
- ThreadAttributes.cs
- GlobalEventManager.cs
- CellTreeNodeVisitors.cs
- GeneratedView.cs
- PlatformCulture.cs
- UIElementCollection.cs
- NativeRightsManagementAPIsStructures.cs
- Control.cs
- Package.cs
- XmlSerializableWriter.cs
- MarginCollapsingState.cs
- FileAuthorizationModule.cs
- GlyphingCache.cs
- SystemMulticastIPAddressInformation.cs
- BamlLocalizableResourceKey.cs
- _emptywebproxy.cs
- MouseButton.cs
- BindableAttribute.cs
- MetadataCollection.cs
- SrgsElementFactory.cs
- OleDbPermission.cs
- IDataContractSurrogate.cs
- MediaEntryAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- DocumentReference.cs
- XamlToRtfWriter.cs
- EventLogException.cs
- XmlSchemaComplexContentExtension.cs
- ArrangedElementCollection.cs
- EntityDataSourceSelectingEventArgs.cs
- DocumentCollection.cs
- DeflateStream.cs
- Scene3D.cs
- HyperLink.cs
- ResourceCategoryAttribute.cs
- TemplateInstanceAttribute.cs
- SerializationAttributes.cs
- GridViewRowPresenterBase.cs
- Helper.cs
- Path.cs
- WebDisplayNameAttribute.cs
- RegexGroupCollection.cs
- HtmlImage.cs
- CollectionConverter.cs
- WriterOutput.cs
- SQLGuid.cs
- GridViewCommandEventArgs.cs
- SearchExpression.cs
- ExceptionRoutedEventArgs.cs
- RunWorkerCompletedEventArgs.cs
- SafePEFileHandle.cs
- DesignTimeParseData.cs
- DataFormat.cs
- ActivityExecutionContext.cs
- StringBuilder.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CompilerState.cs
- CatalogPartChrome.cs
- WebErrorHandler.cs
- CapabilitiesRule.cs
- BindingMemberInfo.cs
- DockingAttribute.cs
- AnonymousIdentificationSection.cs
- BindingNavigatorDesigner.cs
- CollectionType.cs
- TypeConverter.cs
- PointUtil.cs
- KeyFrames.cs
- JpegBitmapEncoder.cs
- XslTransform.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ResourceAssociationTypeEnd.cs
- OleDbConnection.cs
- EnumerableValidator.cs
- DataBindEngine.cs
- DesignTimeData.cs
- _PooledStream.cs
- NotSupportedException.cs
- Timeline.cs
- DataColumnMapping.cs
- ExpressionCopier.cs
- UnmanagedMarshal.cs
- DocumentViewerConstants.cs
- PropertyFilterAttribute.cs
- MemoryMappedViewAccessor.cs
- FacetChecker.cs
- SudsWriter.cs
- DataBinding.cs
- TreeNodeStyle.cs
- ListenerAdapterBase.cs
- VectorKeyFrameCollection.cs
- ClientConvert.cs