Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataServiceBehavior.cs
- ComplusEndpointConfigContainer.cs
- Matrix3DConverter.cs
- Menu.cs
- LineServicesCallbacks.cs
- DataGridViewLinkCell.cs
- Win32MouseDevice.cs
- GeometryModel3D.cs
- DataViewManagerListItemTypeDescriptor.cs
- IChannel.cs
- StructuredTypeEmitter.cs
- ComplusTypeValidator.cs
- UrlPath.cs
- FileDialogCustomPlace.cs
- CodeMemberMethod.cs
- BuildManager.cs
- DataServiceConfiguration.cs
- ObjectStateEntry.cs
- NavigatorOutput.cs
- ResXResourceReader.cs
- ScriptingJsonSerializationSection.cs
- VisualCollection.cs
- GroupBoxAutomationPeer.cs
- ToolStripDropDown.cs
- PriorityBindingExpression.cs
- ServiceProviders.cs
- Point3D.cs
- WindowsNonControl.cs
- AssemblyContextControlItem.cs
- HtmlGenericControl.cs
- ReliableOutputConnection.cs
- WebResourceUtil.cs
- PageRequestManager.cs
- UnsafeNativeMethods.cs
- ConnectionProviderAttribute.cs
- ListViewItemEventArgs.cs
- CodeGen.cs
- AsyncResult.cs
- CodeFieldReferenceExpression.cs
- TokenBasedSet.cs
- ToolStripSplitButton.cs
- ParsedAttributeCollection.cs
- DataGridViewTextBoxEditingControl.cs
- SafeReadContext.cs
- DataListItemEventArgs.cs
- dbenumerator.cs
- DynamicActionMessageFilter.cs
- oledbconnectionstring.cs
- SqlDataSourceEnumerator.cs
- CustomCredentialPolicy.cs
- xmlfixedPageInfo.cs
- ElapsedEventArgs.cs
- XmlDataCollection.cs
- X509ChainElement.cs
- Classification.cs
- CompositeCollection.cs
- TextTreeUndoUnit.cs
- ExpressionsCollectionConverter.cs
- CodeEventReferenceExpression.cs
- Win32PrintDialog.cs
- OutOfMemoryException.cs
- DataSourceListEditor.cs
- BufferedWebEventProvider.cs
- CssStyleCollection.cs
- TextElementCollection.cs
- CommandEventArgs.cs
- SQLMoneyStorage.cs
- WeakRefEnumerator.cs
- DependencyObjectProvider.cs
- DataGridViewTopLeftHeaderCell.cs
- DataServiceProviderWrapper.cs
- CellLabel.cs
- Panel.cs
- TypeDescriptionProvider.cs
- PersistChildrenAttribute.cs
- PasswordPropertyTextAttribute.cs
- ColorConvertedBitmapExtension.cs
- SafeMILHandleMemoryPressure.cs
- Logging.cs
- DoubleAnimationClockResource.cs
- _NtlmClient.cs
- StdValidatorsAndConverters.cs
- ExtendedProtectionPolicy.cs
- SHA1Managed.cs
- Fonts.cs
- StateMachineWorkflowInstance.cs
- Label.cs
- X509SubjectKeyIdentifierClause.cs
- TimeIntervalCollection.cs
- IndicCharClassifier.cs
- GlyphElement.cs
- ResourceBinder.cs
- SoapFault.cs
- Resources.Designer.cs
- DataGridCell.cs
- Rect.cs
- Process.cs
- BlurEffect.cs
- SymbolEqualComparer.cs
- CLSCompliantAttribute.cs