Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / BitmapScalingModeValidation.cs / 2 / 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
- _TransmitFileOverlappedAsyncResult.cs
- ResolveInfo.cs
- ObjectQueryExecutionPlan.cs
- DiscoveryUtility.cs
- InteropBitmapSource.cs
- XmlWellformedWriterHelpers.cs
- DataErrorValidationRule.cs
- EntityTypeBase.cs
- CmsUtils.cs
- _IPv6Address.cs
- SingleObjectCollection.cs
- TempFiles.cs
- XmlSchemaSubstitutionGroup.cs
- MediaSystem.cs
- PersonalizableTypeEntry.cs
- XmlElementCollection.cs
- TemplateBuilder.cs
- CatalogZone.cs
- SmtpTransport.cs
- Bitmap.cs
- WebSysDescriptionAttribute.cs
- ProxyDataContractResolver.cs
- StaticFileHandler.cs
- ToReply.cs
- MulticastDelegate.cs
- CodeSubDirectory.cs
- FilterQuery.cs
- DBSqlParserTableCollection.cs
- CodeArgumentReferenceExpression.cs
- OdbcConnection.cs
- OdbcParameterCollection.cs
- DataProtection.cs
- StrokeNodeOperations2.cs
- IntranetCredentialPolicy.cs
- FileUpload.cs
- SettingsPropertyIsReadOnlyException.cs
- EditorPart.cs
- XpsFilter.cs
- MediaPlayer.cs
- NavigationService.cs
- BuildTopDownAttribute.cs
- RecordsAffectedEventArgs.cs
- Wizard.cs
- BroadcastEventHelper.cs
- EncoderFallback.cs
- OperationCanceledException.cs
- PropertySegmentSerializationProvider.cs
- XPathQilFactory.cs
- Color.cs
- StreamGeometry.cs
- EntityTypeEmitter.cs
- DispatcherTimer.cs
- ApplicationServicesHostFactory.cs
- PropertyMap.cs
- SocketPermission.cs
- CompositeDataBoundControl.cs
- TextEditorTables.cs
- TcpClientSocketManager.cs
- QueryStringParameter.cs
- LocalizationComments.cs
- sqlstateclientmanager.cs
- XmlToDatasetMap.cs
- EmptyArray.cs
- ProjectionPruner.cs
- HttpTransportElement.cs
- BadImageFormatException.cs
- SoapDocumentMethodAttribute.cs
- ScriptResourceDefinition.cs
- DocumentGridPage.cs
- GenericPrincipal.cs
- SoapAttributes.cs
- Guid.cs
- TransformedBitmap.cs
- HtmlInputRadioButton.cs
- ColorContext.cs
- XmlValidatingReaderImpl.cs
- CqlIdentifiers.cs
- MSG.cs
- EventLogPermissionEntry.cs
- SoapExtensionReflector.cs
- InvalidPropValue.cs
- DBNull.cs
- List.cs
- SqlGenericUtil.cs
- CodeLabeledStatement.cs
- XNodeValidator.cs
- InlineUIContainer.cs
- GridViewEditEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- OAVariantLib.cs
- TextPattern.cs
- TargetInvocationException.cs
- HandlerMappingMemo.cs
- PenContext.cs
- SearchForVirtualItemEventArgs.cs
- EqualityComparer.cs
- TextParaClient.cs
- Keyboard.cs
- XmlComment.cs