Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / GeometryCombineModeValidation.cs / 1305600 / 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
- MarkupExtensionParser.cs
- ElementHostPropertyMap.cs
- SrgsToken.cs
- ProviderCommandInfoUtils.cs
- InfoCardSchemas.cs
- DataGridColumnHeader.cs
- ComponentDispatcherThread.cs
- CompilerCollection.cs
- TdsValueSetter.cs
- CryptoProvider.cs
- ArrayWithOffset.cs
- TextBlock.cs
- DesignerDataRelationship.cs
- JavaScriptObjectDeserializer.cs
- BuildDependencySet.cs
- KnownTypes.cs
- SqlTriggerContext.cs
- AllowedAudienceUriElement.cs
- Timeline.cs
- DataGridViewHeaderCell.cs
- PhonemeConverter.cs
- ChangeBlockUndoRecord.cs
- FixedElement.cs
- SQLBytes.cs
- MaxValueConverter.cs
- unitconverter.cs
- JavaScriptObjectDeserializer.cs
- OuterProxyWrapper.cs
- CheckedListBox.cs
- CellRelation.cs
- DataGridBoolColumn.cs
- SetterBaseCollection.cs
- DataViewListener.cs
- PropertyMap.cs
- XmlQueryContext.cs
- JobDuplex.cs
- FontWeightConverter.cs
- FileDialogPermission.cs
- SiteMapDesignerDataSourceView.cs
- SmtpFailedRecipientException.cs
- LayoutEngine.cs
- SiteMapNodeCollection.cs
- SortDescriptionCollection.cs
- HttpModule.cs
- ModuleElement.cs
- TrackingProfileDeserializationException.cs
- PrimitiveType.cs
- Internal.cs
- XmlSchemaSequence.cs
- ServiceOperation.cs
- SchemaNotation.cs
- Hex.cs
- _UriTypeConverter.cs
- HtmlTableCell.cs
- WorkflowFileItem.cs
- ZipIOLocalFileHeader.cs
- ContentTextAutomationPeer.cs
- AngleUtil.cs
- XMLUtil.cs
- SerializationObjectManager.cs
- TextDecorations.cs
- ProfilePropertySettingsCollection.cs
- RequestTimeoutManager.cs
- TransformGroup.cs
- Geometry3D.cs
- Popup.cs
- DataSourceIDConverter.cs
- AffineTransform3D.cs
- UIElementParaClient.cs
- PointConverter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BufferedStream.cs
- ActivitySurrogate.cs
- UndoManager.cs
- TreeViewItem.cs
- SerializationAttributes.cs
- UdpChannelListener.cs
- TextSelectionProcessor.cs
- GeometryGroup.cs
- PackagePartCollection.cs
- Utils.cs
- EntityDesignerUtils.cs
- CompoundFileStorageReference.cs
- SortFieldComparer.cs
- DialogResultConverter.cs
- SafeUserTokenHandle.cs
- IntranetCredentialPolicy.cs
- ToolStripPanelRenderEventArgs.cs
- RequestCache.cs
- SQLMembershipProvider.cs
- UnsafeNativeMethods.cs
- SingleObjectCollection.cs
- KeyToListMap.cs
- AssemblyNameProxy.cs
- ErrorRuntimeConfig.cs
- xmlsaver.cs
- WebContentFormatHelper.cs
- DeviceContext.cs
- IncrementalCompileAnalyzer.cs
- SelectedDatesCollection.cs