Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- ObjectDataSourceMethodEditor.cs
- RegexTree.cs
- TextReader.cs
- VisualBrush.cs
- PathGradientBrush.cs
- SqlConnectionHelper.cs
- DecimalMinMaxAggregationOperator.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ControlUtil.cs
- SafeNativeMemoryHandle.cs
- AdornerHitTestResult.cs
- DropDownList.cs
- TextTreeExtractElementUndoUnit.cs
- HttpCachePolicyElement.cs
- RectAnimationUsingKeyFrames.cs
- SchemaCollectionCompiler.cs
- XmlJsonReader.cs
- ResourceContainer.cs
- RtfToXamlReader.cs
- SafeFindHandle.cs
- DesignerProperties.cs
- BinaryMethodMessage.cs
- PingReply.cs
- Baml2006KeyRecord.cs
- QueryResponse.cs
- DataServiceRequest.cs
- VirtualizingStackPanel.cs
- ConfigurationLockCollection.cs
- BitStream.cs
- PartManifestEntry.cs
- PageHandlerFactory.cs
- GrammarBuilder.cs
- SQLStringStorage.cs
- WebExceptionStatus.cs
- IList.cs
- _LoggingObject.cs
- DataGridViewColumnEventArgs.cs
- SizeChangedEventArgs.cs
- ApplicationInfo.cs
- FileNotFoundException.cs
- TextEditorCopyPaste.cs
- ServiceInfo.cs
- SynchronizationContext.cs
- DataView.cs
- ThreadSafeList.cs
- FieldToken.cs
- RemoteWebConfigurationHost.cs
- X509CertificateValidator.cs
- XamlSerializerUtil.cs
- DataObjectCopyingEventArgs.cs
- WebException.cs
- SamlSubjectStatement.cs
- TCEAdapterGenerator.cs
- WizardPanelChangingEventArgs.cs
- Schema.cs
- PermissionListSet.cs
- SpeechRecognitionEngine.cs
- MethodAccessException.cs
- Vertex.cs
- ToolStripGrip.cs
- PrefixQName.cs
- PersonalizablePropertyEntry.cs
- FlowPanelDesigner.cs
- ColumnReorderedEventArgs.cs
- OracleString.cs
- AdCreatedEventArgs.cs
- MultiView.cs
- ListSourceHelper.cs
- Int32.cs
- OptimizedTemplateContentHelper.cs
- ClosureBinding.cs
- TextLineResult.cs
- MenuItemBindingCollection.cs
- RequestQueue.cs
- WinEventQueueItem.cs
- FontWeight.cs
- SmiTypedGetterSetter.cs
- RoleProviderPrincipal.cs
- HandleRef.cs
- SmiRecordBuffer.cs
- GuidTagList.cs
- ConstructorNeedsTagAttribute.cs
- Timeline.cs
- TypedReference.cs
- ClipboardData.cs
- ProcessHostFactoryHelper.cs
- CustomAttributeFormatException.cs
- Parser.cs
- QilReference.cs
- ListBoxAutomationPeer.cs
- EncodedStreamFactory.cs
- counter.cs
- OLEDB_Enum.cs
- ScrollPattern.cs
- StringValidatorAttribute.cs
- ToolStripContentPanel.cs
- FlowLayoutSettings.cs
- FormViewInsertEventArgs.cs
- DockingAttribute.cs
- OperationResponse.cs