Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / EdgeModeValidation.cs / 1305600 / EdgeModeValidation.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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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 IsEdgeModeValid(object valueObject) { EdgeMode value = (EdgeMode) valueObject; return (value == EdgeMode.Unspecified) || (value == EdgeMode.Aliased); } } } // 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
- DesignerDataRelationship.cs
- FileUtil.cs
- Menu.cs
- TextureBrush.cs
- COM2IPerPropertyBrowsingHandler.cs
- DesignerDataColumn.cs
- WebConfigurationHost.cs
- GroupByExpressionRewriter.cs
- SRGSCompiler.cs
- DataColumnChangeEvent.cs
- MenuAdapter.cs
- InternalRelationshipCollection.cs
- XmlSchemaSimpleContentExtension.cs
- SafeCertificateStore.cs
- BasicCommandTreeVisitor.cs
- MethodSignatureGenerator.cs
- ContextQuery.cs
- NameTable.cs
- SafePointer.cs
- Base64Encoder.cs
- PropertyRecord.cs
- NavigationFailedEventArgs.cs
- GridItemPattern.cs
- ResourceProviderFactory.cs
- KeyFrames.cs
- ByteStreamMessageEncoderFactory.cs
- SelectionManager.cs
- SettingsContext.cs
- LogicalExpr.cs
- GeneralTransform3DCollection.cs
- MaskInputRejectedEventArgs.cs
- XPathDocumentBuilder.cs
- Listbox.cs
- TextCollapsingProperties.cs
- SessionPageStatePersister.cs
- IdentityManager.cs
- DataGridViewImageColumn.cs
- InternalControlCollection.cs
- StringReader.cs
- ExtensibleClassFactory.cs
- StatusBar.cs
- CallTemplateAction.cs
- ManagementException.cs
- InternalPermissions.cs
- LineVisual.cs
- WindowInteractionStateTracker.cs
- keycontainerpermission.cs
- QilVisitor.cs
- PaginationProgressEventArgs.cs
- DataGridView.cs
- RelOps.cs
- Content.cs
- basecomparevalidator.cs
- RegisteredArrayDeclaration.cs
- SoapServerMessage.cs
- FigureHelper.cs
- EntityParameter.cs
- VectorValueSerializer.cs
- WindowsTitleBar.cs
- Stacktrace.cs
- WebDisplayNameAttribute.cs
- AssemblyInfo.cs
- CodeCastExpression.cs
- MessageSmuggler.cs
- XsltQilFactory.cs
- KeyedHashAlgorithm.cs
- SwitchAttribute.cs
- FieldMetadata.cs
- PerformanceCounterPermission.cs
- StrokeNode.cs
- BitmapImage.cs
- ElementUtil.cs
- SafeNativeMemoryHandle.cs
- CustomGrammar.cs
- CurrentTimeZone.cs
- MatrixKeyFrameCollection.cs
- InheritedPropertyChangedEventArgs.cs
- ListViewContainer.cs
- CustomErrorCollection.cs
- Compiler.cs
- CommonDialog.cs
- KeyGestureConverter.cs
- RegexFCD.cs
- ResolveDuplex11AsyncResult.cs
- TextTrailingWordEllipsis.cs
- PersistenceTypeAttribute.cs
- CheckPair.cs
- Statements.cs
- CellQuery.cs
- MenuCommand.cs
- GridEntry.cs
- MeasurementDCInfo.cs
- XmlDeclaration.cs
- securitymgrsite.cs
- XmlSchemaCollection.cs
- KerberosSecurityTokenAuthenticator.cs
- ChildTable.cs
- ExpressionPrefixAttribute.cs
- ToolboxItemCollection.cs
- ComplexLine.cs