Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Animation / TimeEnumHelper.cs / 1 / TimeEnumHelper.cs
//------------------------------------------------------------------------------ // Microsoft Windows Client Platform // Copyright (c) Microsoft Corporation, 2004 // // File: TimeEnumHelper.cs //----------------------------------------------------------------------------- using System; using System.Windows.Media.Animation; namespace MS.Internal { ////// A class for validating enumerated types. /// internal static partial class TimeEnumHelper { // IMPORTANT: These values must be kept current with enum definitions for validation to work // Enums declared in Enums.cs private const int _maxTimeSeekOrigin = (int)TimeSeekOrigin.Duration; // Enums declared in PathAnimationSource.cs private const byte _maxPathAnimationSource = (int)PathAnimationSource.Angle; ////// Determines if the enumerated value is defined (valid) for the given enumerated type /// /// /// The variable whose validity is verified. /// ////// True if valid, false otherwise. /// static internal bool IsValidTimeSeekOrigin(TimeSeekOrigin value) { return (0 <= value && (int)value <= _maxTimeSeekOrigin); } ////// Determines if the enumerated value is defined (valid) for the given enumerated type /// /// /// The variable whose validity is verified. /// ////// True if valid, false otherwise. /// static internal bool IsValidPathAnimationSource(PathAnimationSource value) { return (0 <= value && (byte)value <= _maxPathAnimationSource); } } } // 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
- ObjectAnimationUsingKeyFrames.cs
- SQLRoleProvider.cs
- ResourceLoader.cs
- AppSettingsSection.cs
- MetadataUtil.cs
- AVElementHelper.cs
- DatatypeImplementation.cs
- TypographyProperties.cs
- Visual3DCollection.cs
- PackageStore.cs
- IndexedEnumerable.cs
- OpCodes.cs
- FontFaceLayoutInfo.cs
- SemanticResultValue.cs
- ControlIdConverter.cs
- DataBindingExpressionBuilder.cs
- PasswordTextContainer.cs
- XPathAxisIterator.cs
- ConnectionsZone.cs
- ParameterToken.cs
- StrokeNodeData.cs
- WebHttpSecurity.cs
- IncrementalHitTester.cs
- NumberSubstitution.cs
- NativeMethods.cs
- OleDragDropHandler.cs
- Assembly.cs
- NTAccount.cs
- SqlBulkCopyColumnMapping.cs
- MessageContractImporter.cs
- DataGridViewRowPrePaintEventArgs.cs
- TemplateBindingExpression.cs
- HttpApplication.cs
- DynamicObjectAccessor.cs
- SerializationEventsCache.cs
- ColumnHeaderConverter.cs
- SessionStateContainer.cs
- WebFaultClientMessageInspector.cs
- Axis.cs
- SchemaDeclBase.cs
- SiteMapSection.cs
- EndOfStreamException.cs
- BitmapMetadataBlob.cs
- PrintControllerWithStatusDialog.cs
- PackWebRequestFactory.cs
- XmlQueryOutput.cs
- SqlStatistics.cs
- ToolBarDesigner.cs
- ViewGenerator.cs
- ClientClassGenerator.cs
- CornerRadiusConverter.cs
- SafeNativeMethodsCLR.cs
- ContentType.cs
- DictionaryManager.cs
- ScrollProviderWrapper.cs
- CodeEntryPointMethod.cs
- TextEndOfParagraph.cs
- CodeRegionDirective.cs
- ReadOnlyCollectionBase.cs
- TerminatorSinks.cs
- ResourcesChangeInfo.cs
- PrintDialog.cs
- ComplexType.cs
- ScriptManagerProxy.cs
- GroupItemAutomationPeer.cs
- RightsDocument.cs
- PartialList.cs
- Point.cs
- PersistenceTypeAttribute.cs
- RawStylusInputReport.cs
- FileUpload.cs
- EntityDataSourceDesignerHelper.cs
- XamlPoint3DCollectionSerializer.cs
- ConfigXmlText.cs
- MultiTrigger.cs
- DataKeyCollection.cs
- InternalCache.cs
- DispatcherProcessingDisabled.cs
- addressfiltermode.cs
- SingleTagSectionHandler.cs
- CodeTypeParameter.cs
- HtmlInputImage.cs
- Soap.cs
- MetaData.cs
- RootNamespaceAttribute.cs
- ParameterCollection.cs
- RegexRunnerFactory.cs
- FtpWebRequest.cs
- ComContractElementCollection.cs
- DSASignatureFormatter.cs
- FolderBrowserDialog.cs
- FormatterServices.cs
- HttpHeaderCollection.cs
- TextShapeableCharacters.cs
- DragSelectionMessageFilter.cs
- FixedTextContainer.cs
- DebugHandleTracker.cs
- MeasurementDCInfo.cs
- KeyedHashAlgorithm.cs
- RotateTransform3D.cs