Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 1305600 / BitmapScalingModeValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsBitmapScalingModeValid(object valueObject) { BitmapScalingMode value = (BitmapScalingMode) valueObject; return (value == BitmapScalingMode.Unspecified) || (value == BitmapScalingMode.LowQuality) || (value == BitmapScalingMode.HighQuality) || (value == BitmapScalingMode.Linear) || (value == BitmapScalingMode.Fant) || (value == BitmapScalingMode.NearestNeighbor); } } } // 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
- TokenBasedSet.cs
- WebProxyScriptElement.cs
- TextCompositionManager.cs
- ExpressionWriter.cs
- basecomparevalidator.cs
- IIS7UserPrincipal.cs
- UserInitiatedRoutedEventPermission.cs
- ActivitySurrogateSelector.cs
- CodeExporter.cs
- EventItfInfo.cs
- SplitterPanel.cs
- XamlReaderHelper.cs
- NotifyIcon.cs
- RegistrationServices.cs
- PackWebRequestFactory.cs
- MarshalByValueComponent.cs
- SourceElementsCollection.cs
- ObjectDataSourceView.cs
- ManualResetEvent.cs
- DataGridRelationshipRow.cs
- AnimationLayer.cs
- DataSourceControlBuilder.cs
- TraceContext.cs
- CustomWebEventKey.cs
- EntityTemplateUserControl.cs
- OverlappedAsyncResult.cs
- Stack.cs
- DeferredElementTreeState.cs
- MeasureData.cs
- DNS.cs
- EqualityComparer.cs
- WebPartCollection.cs
- ToolStripSplitButton.cs
- ChangeDirector.cs
- CodeSpit.cs
- CharUnicodeInfo.cs
- ParameterCollection.cs
- ConstraintStruct.cs
- CallbackValidator.cs
- VirtualizedCellInfoCollection.cs
- DetailsViewRow.cs
- MatrixValueSerializer.cs
- ConditionalExpression.cs
- EntityRecordInfo.cs
- TagMapInfo.cs
- DesignerAdRotatorAdapter.cs
- SQLByteStorage.cs
- MimeAnyImporter.cs
- TextChangedEventArgs.cs
- PropertyTabChangedEvent.cs
- ConnectionStringSettings.cs
- SqlCommandBuilder.cs
- MetricEntry.cs
- AuthenticationModuleElement.cs
- TextRange.cs
- LinqDataSource.cs
- TextElementCollection.cs
- CustomSignedXml.cs
- ParameterBuilder.cs
- ClientBuildManager.cs
- ForceCopyBuildProvider.cs
- Table.cs
- EntityType.cs
- _BaseOverlappedAsyncResult.cs
- DataGridViewControlCollection.cs
- ColumnWidthChangedEvent.cs
- TargetParameterCountException.cs
- SoapSchemaImporter.cs
- ActiveDocumentEvent.cs
- HebrewCalendar.cs
- URIFormatException.cs
- ItemChangedEventArgs.cs
- StylusEditingBehavior.cs
- CanonicalXml.cs
- ToolStripManager.cs
- RunClient.cs
- EventDescriptor.cs
- OpenTypeLayoutCache.cs
- TdsParserHelperClasses.cs
- DiscoveryUtility.cs
- BoundPropertyEntry.cs
- TabControl.cs
- Site.cs
- XmlFormatWriterGenerator.cs
- ModelFactory.cs
- SynchronizationLockException.cs
- DrawingServices.cs
- CommentEmitter.cs
- ByteAnimationBase.cs
- SmtpLoginAuthenticationModule.cs
- HwndAppCommandInputProvider.cs
- TagMapInfo.cs
- DSASignatureFormatter.cs
- ListViewItem.cs
- ConditionalDesigner.cs
- PersonalizableTypeEntry.cs
- ValueProviderWrapper.cs
- HandlerMappingMemo.cs
- Binding.cs
- WindowsFormsSynchronizationContext.cs