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 / GeometryCombineModeValidation.cs / 1 / GeometryCombineModeValidation.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 IsGeometryCombineModeValid(object valueObject)
{
GeometryCombineMode value = (GeometryCombineMode) valueObject;
return (value == GeometryCombineMode.Union) ||
(value == GeometryCombineMode.Intersect) ||
(value == GeometryCombineMode.Xor) ||
(value == GeometryCombineMode.Exclude);
}
}
}
// 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 IsGeometryCombineModeValid(object valueObject)
{
GeometryCombineMode value = (GeometryCombineMode) valueObject;
return (value == GeometryCombineMode.Union) ||
(value == GeometryCombineMode.Intersect) ||
(value == GeometryCombineMode.Xor) ||
(value == GeometryCombineMode.Exclude);
}
}
}
// 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
- RequestQueryParser.cs
- DesignTimeTemplateParser.cs
- TypographyProperties.cs
- DesignerActionVerbItem.cs
- GifBitmapDecoder.cs
- ColumnCollection.cs
- XpsImage.cs
- Roles.cs
- Polygon.cs
- Condition.cs
- TemplateBindingExtensionConverter.cs
- UpdateTranslator.cs
- TextEffectResolver.cs
- UseAttributeSetsAction.cs
- SR.Designer.cs
- TreeWalkHelper.cs
- WbemProvider.cs
- DocumentViewerConstants.cs
- OdbcCommandBuilder.cs
- PropertyMetadata.cs
- DesignObjectWrapper.cs
- EntityCommandCompilationException.cs
- Selection.cs
- CreateCardRequest.cs
- DynamicPropertyHolder.cs
- Rijndael.cs
- SevenBitStream.cs
- XsdBuildProvider.cs
- StrokeCollection2.cs
- ClientApiGenerator.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ImageMapEventArgs.cs
- FixedStringLookup.cs
- Int32Rect.cs
- TextEditorSelection.cs
- XmlUTF8TextReader.cs
- EventLogPermissionAttribute.cs
- XmlSchemaAll.cs
- ListViewUpdatedEventArgs.cs
- QuotedStringFormatReader.cs
- RootBuilder.cs
- TextEditorParagraphs.cs
- EncoderReplacementFallback.cs
- Stylus.cs
- MgmtConfigurationRecord.cs
- SchemaImporterExtension.cs
- MetricEntry.cs
- ResolveDuplexAsyncResult.cs
- ManagedFilter.cs
- WebPartDisplayMode.cs
- ComplexLine.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- PageContentCollection.cs
- TextWriter.cs
- SqlSelectStatement.cs
- Globals.cs
- Timeline.cs
- PointLightBase.cs
- ProbeDuplex11AsyncResult.cs
- Rotation3D.cs
- ObjectViewEntityCollectionData.cs
- linebase.cs
- WorkflowIdleElement.cs
- HandlerFactoryCache.cs
- CompositeDataBoundControl.cs
- ObjectDataSource.cs
- TransformPattern.cs
- ListBoxItemAutomationPeer.cs
- BinaryObjectWriter.cs
- ServiceOperationViewControl.cs
- TdsParserHelperClasses.cs
- ExceptionHelpers.cs
- XsltSettings.cs
- Matrix3D.cs
- TransformerInfo.cs
- TextDecorations.cs
- XPathNavigatorException.cs
- TextSpanModifier.cs
- GridView.cs
- ListBox.cs
- DispatcherOperation.cs
- FrameworkContentElement.cs
- SplashScreenNativeMethods.cs
- SchemaCollectionPreprocessor.cs
- EmptyEnumerable.cs
- ListViewUpdateEventArgs.cs
- CompilerResults.cs
- HttpsChannelListener.cs
- PageContent.cs
- ContentHostHelper.cs
- HtmlImageAdapter.cs
- Attribute.cs
- ToolTipAutomationPeer.cs
- ImplicitInputBrush.cs
- HtmlContainerControl.cs
- DefaultValueAttribute.cs
- ErasingStroke.cs
- QueryValue.cs
- InputDevice.cs
- ObjectQuery.cs