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
- LayoutExceptionEventArgs.cs
- CodeExporter.cs
- ImportDesigner.xaml.cs
- BooleanAnimationUsingKeyFrames.cs
- FlowLayoutPanel.cs
- TreeBuilder.cs
- BasicHttpBindingElement.cs
- MultitargetUtil.cs
- PolicyImporterElement.cs
- HyperLinkField.cs
- SmiEventSink.cs
- DbConnectionStringBuilder.cs
- SQLByteStorage.cs
- IDataContractSurrogate.cs
- IpcClientManager.cs
- MemoryMappedFile.cs
- ColorMap.cs
- CalendarDataBindingHandler.cs
- URL.cs
- XmlSchemaExternal.cs
- CheckBoxFlatAdapter.cs
- FreezableOperations.cs
- CodeCatchClause.cs
- DescriptionAttribute.cs
- Speller.cs
- MinMaxParagraphWidth.cs
- TextEditorDragDrop.cs
- TemplatePropertyEntry.cs
- ForeignKeyConstraint.cs
- ConfigurationValues.cs
- SequenceDesigner.xaml.cs
- LinkedResource.cs
- CaseInsensitiveHashCodeProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DoubleCollectionConverter.cs
- MulticastOption.cs
- VirtualPathUtility.cs
- WorkflowRuntime.cs
- ObjectParameterCollection.cs
- AssemblyName.cs
- COM2Properties.cs
- ExpressionBindingCollection.cs
- PagesSection.cs
- OleDbWrapper.cs
- OperationInvokerTrace.cs
- JsonSerializer.cs
- Utility.cs
- SoapAttributeAttribute.cs
- OpCellTreeNode.cs
- EncryptedKeyIdentifierClause.cs
- PaintEvent.cs
- Utilities.cs
- exports.cs
- SynchronizedInputAdaptor.cs
- Switch.cs
- ElementMarkupObject.cs
- FlowDocumentReaderAutomationPeer.cs
- MyContact.cs
- Section.cs
- FileStream.cs
- ClaimTypes.cs
- IMembershipProvider.cs
- TypeDescriptionProviderAttribute.cs
- XmlSchemaNotation.cs
- MenuEventArgs.cs
- CharAnimationBase.cs
- MetadataElement.cs
- CompilationUnit.cs
- QilSortKey.cs
- RequestQueryProcessor.cs
- IgnoreDeviceFilterElement.cs
- SharedConnectionListener.cs
- serverconfig.cs
- DragEvent.cs
- ExportOptions.cs
- BitSet.cs
- UIPermission.cs
- StylusPointPropertyInfo.cs
- FragmentNavigationEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- PrintControllerWithStatusDialog.cs
- AutoGeneratedFieldProperties.cs
- PieceDirectory.cs
- UserInitiatedNavigationPermission.cs
- HtmlCommandAdapter.cs
- PenThreadWorker.cs
- SystemParameters.cs
- XD.cs
- SpotLight.cs
- PenThreadWorker.cs
- SqlGenericUtil.cs
- NetSectionGroup.cs
- WpfSharedBamlSchemaContext.cs
- SecurityKeyIdentifier.cs
- ConditionalAttribute.cs
- XmlSchemaObjectTable.cs
- HtmlTextViewAdapter.cs
- PasswordTextContainer.cs
- GridViewRowCollection.cs
- TextEditorDragDrop.cs