Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / EdgeModeValidation.cs / 1 / 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
- SqlDataReaderSmi.cs
- messageonlyhwndwrapper.cs
- GridViewDeletedEventArgs.cs
- DispatcherFrame.cs
- Column.cs
- AutomationEvent.cs
- ModelPropertyImpl.cs
- ToolZone.cs
- SrgsOneOf.cs
- ThumbButtonInfo.cs
- SaveFileDialog.cs
- HuffmanTree.cs
- ListManagerBindingsCollection.cs
- DataGridAddNewRow.cs
- DoubleLinkList.cs
- ReferencedCollectionType.cs
- AppDomainUnloadedException.cs
- DoubleStorage.cs
- ReferenceEqualityComparer.cs
- CommandTreeTypeHelper.cs
- Button.cs
- ExpressionBuilder.cs
- AttributeAction.cs
- UserControlBuildProvider.cs
- Accessible.cs
- TagNameToTypeMapper.cs
- MetafileEditor.cs
- WebPartDescription.cs
- ZipIOCentralDirectoryFileHeader.cs
- EventSource.cs
- MediaSystem.cs
- RegexWriter.cs
- AutomationPeer.cs
- ViewKeyConstraint.cs
- BufferedGraphicsManager.cs
- XmlAggregates.cs
- BooleanConverter.cs
- Win32.cs
- ExtensionFile.cs
- BitmapSizeOptions.cs
- DateTimeUtil.cs
- AesManaged.cs
- SiteMapPath.cs
- CustomAttribute.cs
- NameHandler.cs
- BaseResourcesBuildProvider.cs
- CodeIdentifier.cs
- PriorityItem.cs
- DocumentPageViewAutomationPeer.cs
- BinaryReader.cs
- Size3DValueSerializer.cs
- TypeInfo.cs
- FieldBuilder.cs
- DocumentViewer.cs
- WorkflowPersistenceService.cs
- X509Chain.cs
- TypedReference.cs
- MsmqIntegrationInputMessage.cs
- Rect3D.cs
- CompositeDispatchFormatter.cs
- SqlClientFactory.cs
- WorkflowOperationBehavior.cs
- CryptographicAttribute.cs
- WebPartDescription.cs
- ArrayList.cs
- BinaryReader.cs
- AddInProcess.cs
- FormCollection.cs
- QueryBranchOp.cs
- BooleanStorage.cs
- TextTreeUndo.cs
- SubMenuStyleCollection.cs
- TextRangeAdaptor.cs
- WindowsGraphicsCacheManager.cs
- SamlAdvice.cs
- SpeechEvent.cs
- HtmlFormAdapter.cs
- TypeContext.cs
- WsatTransactionHeader.cs
- RemotingSurrogateSelector.cs
- XsltException.cs
- ResourceDisplayNameAttribute.cs
- DataControlField.cs
- DateTimeStorage.cs
- CodeCompiler.cs
- ConfigurationSectionCollection.cs
- TextBreakpoint.cs
- XPathNavigatorKeyComparer.cs
- SmiContext.cs
- XmlSerializerNamespaces.cs
- MenuRenderer.cs
- TemplateControlParser.cs
- JsonSerializer.cs
- CollaborationHelperFunctions.cs
- KnownColorTable.cs
- DataSourceViewSchemaConverter.cs
- ScriptRegistrationManager.cs
- WindowsPen.cs
- SR.Designer.cs
- OpCellTreeNode.cs