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
- QueryRelOp.cs
- DESCryptoServiceProvider.cs
- ExtentKey.cs
- GradientStopCollection.cs
- XmlText.cs
- BaseCodeDomTreeGenerator.cs
- ControlCachePolicy.cs
- XmlBoundElement.cs
- DrawingGroupDrawingContext.cs
- PackagePart.cs
- UserControlBuildProvider.cs
- ConnectorSelectionGlyph.cs
- SignatureToken.cs
- TemplateInstanceAttribute.cs
- ColorMatrix.cs
- LabelEditEvent.cs
- externdll.cs
- ButtonChrome.cs
- ToolboxItemWrapper.cs
- SocketAddress.cs
- HWStack.cs
- OutputCacheProfileCollection.cs
- ActivityTrace.cs
- RequestFactory.cs
- DmlSqlGenerator.cs
- ScrollChangedEventArgs.cs
- BaseCodePageEncoding.cs
- DataGridViewCheckBoxCell.cs
- ChannelManagerBase.cs
- FormViewInsertEventArgs.cs
- UnknownWrapper.cs
- TextContainerHelper.cs
- XmlMessageFormatter.cs
- FloatAverageAggregationOperator.cs
- UserControlBuildProvider.cs
- ReceiveSecurityHeaderEntry.cs
- OracleConnectionString.cs
- StrongTypingException.cs
- FixedSOMGroup.cs
- _PooledStream.cs
- HttpCacheParams.cs
- SmtpDigestAuthenticationModule.cs
- IHttpResponseInternal.cs
- WebPartMenu.cs
- ObjectCloneHelper.cs
- UTF7Encoding.cs
- Table.cs
- StorageScalarPropertyMapping.cs
- DropDownHolder.cs
- SqlDataSourceConnectionPanel.cs
- PngBitmapEncoder.cs
- PermissionSet.cs
- DelegateCompletionCallbackWrapper.cs
- EditorZone.cs
- ButtonBaseAdapter.cs
- CallbackCorrelationInitializer.cs
- RoleGroupCollection.cs
- DbConnectionPoolIdentity.cs
- XmlCodeExporter.cs
- SafeProcessHandle.cs
- ProbeDuplex11AsyncResult.cs
- Win32NamedPipes.cs
- ProviderException.cs
- Point3DValueSerializer.cs
- WebBrowserNavigatingEventHandler.cs
- WizardPanelChangingEventArgs.cs
- BinaryMessageFormatter.cs
- TransformerTypeCollection.cs
- ImageAutomationPeer.cs
- ButtonBaseAutomationPeer.cs
- ByeMessageApril2005.cs
- FragmentQueryKB.cs
- securitycriticaldata.cs
- backend.cs
- Point3DCollectionConverter.cs
- LineMetrics.cs
- _Win32.cs
- VectorKeyFrameCollection.cs
- DateTimeSerializationSection.cs
- StringBuilder.cs
- ComponentFactoryHelpers.cs
- UnsafeMethods.cs
- AddressAccessDeniedException.cs
- CommonDialog.cs
- Location.cs
- OperatorExpressions.cs
- TemplateControl.cs
- TypeUsage.cs
- TdsRecordBufferSetter.cs
- BoundPropertyEntry.cs
- SmiGettersStream.cs
- ParseElement.cs
- Compiler.cs
- TypeDependencyAttribute.cs
- CqlParserHelpers.cs
- ReadOnlyHierarchicalDataSource.cs
- DashStyle.cs
- XsdCachingReader.cs
- FileDataSourceCache.cs
- AggregateNode.cs