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 / BrushMappingModeValidation.cs / 1 / BrushMappingModeValidation.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 IsBrushMappingModeValid(object valueObject) { BrushMappingMode value = (BrushMappingMode) valueObject; return (value == BrushMappingMode.Absolute) || (value == BrushMappingMode.RelativeToBoundingBox); } } } // 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 IsBrushMappingModeValid(object valueObject) { BrushMappingMode value = (BrushMappingMode) valueObject; return (value == BrushMappingMode.Absolute) || (value == BrushMappingMode.RelativeToBoundingBox); } } } // 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
- WebHostedComPlusServiceHost.cs
- BufferedResponseStream.cs
- ToolStripOverflow.cs
- FixedSOMPage.cs
- WebSysDescriptionAttribute.cs
- SafeThreadHandle.cs
- _Win32.cs
- UIElementPropertyUndoUnit.cs
- ThreadStateException.cs
- nulltextnavigator.cs
- SessionPageStatePersister.cs
- MessagePartDescription.cs
- NativeActivityTransactionContext.cs
- MenuAdapter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SchemaNames.cs
- EmptyEnumerable.cs
- Wizard.cs
- XPathQilFactory.cs
- HtmlMeta.cs
- SizeChangedEventArgs.cs
- StorageComplexTypeMapping.cs
- StateMachine.cs
- StateItem.cs
- ResourceCategoryAttribute.cs
- XmlSchemaComplexContentExtension.cs
- NextPreviousPagerField.cs
- XmlHelper.cs
- ListBase.cs
- ComplexTypeEmitter.cs
- SqlDataSource.cs
- SqlDataSourceCache.cs
- SafeEventLogReadHandle.cs
- ActivityBindForm.Designer.cs
- ProjectionQueryOptionExpression.cs
- ToolStripControlHost.cs
- DbSourceCommand.cs
- BezierSegment.cs
- TraceFilter.cs
- CqlWriter.cs
- SafeFileHandle.cs
- WebPartDisplayModeEventArgs.cs
- Enum.cs
- DocumentGrid.cs
- TypedServiceChannelBuilder.cs
- SmiEventSink_DeferedProcessing.cs
- DebugControllerThread.cs
- StructuredTypeEmitter.cs
- ToolStripDesignerUtils.cs
- DbBuffer.cs
- AncillaryOps.cs
- PropertyNames.cs
- LinkConverter.cs
- FixedSOMElement.cs
- DataSetUtil.cs
- MetadataSource.cs
- QueueProcessor.cs
- TransactionScope.cs
- FaultHandlingFilter.cs
- ResourceExpressionBuilder.cs
- CultureSpecificCharacterBufferRange.cs
- StyleTypedPropertyAttribute.cs
- ImageCodecInfo.cs
- ToolStripControlHost.cs
- ExpressionBuilder.cs
- WorkerRequest.cs
- ReferencedType.cs
- XmlValidatingReaderImpl.cs
- Buffer.cs
- SafeNativeMethods.cs
- CheckoutException.cs
- EdmTypeAttribute.cs
- DelegateInArgument.cs
- ClientRolePrincipal.cs
- StandardOleMarshalObject.cs
- GridViewDeletedEventArgs.cs
- HybridDictionary.cs
- ComponentConverter.cs
- UpDownBase.cs
- PropagatorResult.cs
- StyleXamlParser.cs
- CommentAction.cs
- LinkConverter.cs
- URLAttribute.cs
- SyndicationContent.cs
- DynamicILGenerator.cs
- ResourceSet.cs
- ViewGenerator.cs
- ConfigurationManagerHelper.cs
- IPGlobalProperties.cs
- CaseInsensitiveComparer.cs
- TextPointer.cs
- XmlDeclaration.cs
- WebPartEditorCancelVerb.cs
- Query.cs
- IndexExpression.cs
- Win32.cs
- TableLayout.cs
- HtmlTitle.cs
- CommunicationObjectAbortedException.cs