Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BrushMappingModeValidation.cs / 1305600 / 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
- _TransmitFileOverlappedAsyncResult.cs
- Metadata.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlSchemaValidator.cs
- CellRelation.cs
- WebDisplayNameAttribute.cs
- QuadraticBezierSegment.cs
- FileRecordSequenceCompletedAsyncResult.cs
- BitmapEffectState.cs
- Underline.cs
- CodeMemberEvent.cs
- EventSinkHelperWriter.cs
- TextRunProperties.cs
- WSHttpBindingCollectionElement.cs
- DecoderFallback.cs
- DataSourceControlBuilder.cs
- SQLBinaryStorage.cs
- Compilation.cs
- ComplexBindingPropertiesAttribute.cs
- ThrowHelper.cs
- DataSourceGroupCollection.cs
- CompressedStack.cs
- SharedStatics.cs
- ConstantProjectedSlot.cs
- WebPartConnectionsConnectVerb.cs
- CapabilitiesState.cs
- _CookieModule.cs
- BCLDebug.cs
- LayoutSettings.cs
- RegexGroup.cs
- ReverseInheritProperty.cs
- XmlValidatingReaderImpl.cs
- HeaderedContentControl.cs
- StringToken.cs
- PrePrepareMethodAttribute.cs
- DataTemplateKey.cs
- CalendarAutoFormat.cs
- OracleParameterCollection.cs
- Vertex.cs
- CodeThrowExceptionStatement.cs
- ConnectionStringSettings.cs
- ConnectivityStatus.cs
- SHA384Managed.cs
- WindowsFormsSynchronizationContext.cs
- DataMemberFieldEditor.cs
- SiteMapNode.cs
- CodeGotoStatement.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- MDIWindowDialog.cs
- ReflectTypeDescriptionProvider.cs
- EntityViewContainer.cs
- Bits.cs
- ValidationErrorCollection.cs
- TransactionFlowAttribute.cs
- OrderPreservingPipeliningSpoolingTask.cs
- GeometryCombineModeValidation.cs
- FlowDocumentPageViewerAutomationPeer.cs
- EntityDataSourceDesignerHelper.cs
- SqlRetyper.cs
- DrawItemEvent.cs
- HttpException.cs
- PriorityBinding.cs
- PartialList.cs
- MetadataArtifactLoaderComposite.cs
- ChannelParameterCollection.cs
- SystemIPAddressInformation.cs
- VisualBrush.cs
- ISCIIEncoding.cs
- WebContext.cs
- CryptographicAttribute.cs
- HtmlInputFile.cs
- BamlCollectionHolder.cs
- TextPatternIdentifiers.cs
- FacetEnabledSchemaElement.cs
- KnownIds.cs
- ApplicationTrust.cs
- WebPartConnectionsConnectVerb.cs
- Helper.cs
- AVElementHelper.cs
- LogPolicy.cs
- ScrollPatternIdentifiers.cs
- DataServiceProviderMethods.cs
- SimpleParser.cs
- ConfigXmlReader.cs
- WebColorConverter.cs
- FixedSOMTableCell.cs
- StringStorage.cs
- Transactions.cs
- IncrementalReadDecoders.cs
- EventSetter.cs
- ApplicationTrust.cs
- ResourceReferenceExpressionConverter.cs
- ResourceReferenceExpression.cs
- EventLogTraceListener.cs
- CurrencyWrapper.cs
- RedistVersionInfo.cs
- Emitter.cs
- FormClosedEvent.cs
- _SslState.cs
- WebPartActionVerb.cs