Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1305600 / TextEffect.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2001 // // File: TextEffect.cs // // Contents: TextEffect class // // Created: 3/23/2004 garyyang // //----------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Collections; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// The class definition for TextEffect /// [Localizability(LocalizationCategory.None, Readability=Readability.Unreadable)] public partial class TextEffect : Animatable { //---------------------------------------- // constructor //---------------------------------------- ////// Constructor to TextEffect /// /// transform of the text effect /// foreground of the text effect /// clip of the text effect /// starting character index of the text effect /// number of code points public TextEffect( Transform transform, Brush foreground, Geometry clip, int positionStart, int positionCount ) { if (positionCount < 0) { throw new ArgumentOutOfRangeException("positionCount", SR.Get(SRID.ParameterCannotBeNegative)); } Transform = transform; Foreground = foreground; Clip = clip; PositionStart = positionStart; PositionCount = positionCount; } ////// constructor /// public TextEffect() { } //------------------------------- // Private method //------------------------------- private static bool OnPositionStartChanging(int value) { return (value >= 0); } private static bool OnPositionCountChanging(int value) { return (value >= 0); } } } // 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
- RadioButtonBaseAdapter.cs
- DataGridViewButtonColumn.cs
- _LocalDataStore.cs
- CapabilitiesSection.cs
- CapabilitiesSection.cs
- DeclaredTypeValidatorAttribute.cs
- Compiler.cs
- WinEventTracker.cs
- PriorityItem.cs
- DelegateInArgument.cs
- IItemContainerGenerator.cs
- EnterpriseServicesHelper.cs
- NamespaceTable.cs
- SqlProviderUtilities.cs
- TableCell.cs
- smtpconnection.cs
- DbConnectionHelper.cs
- CustomCategoryAttribute.cs
- ExtendedPropertiesHandler.cs
- XmlSchemaComplexContentRestriction.cs
- AsyncResult.cs
- documentsequencetextcontainer.cs
- IssuanceTokenProviderBase.cs
- EncryptedReference.cs
- BaseDataList.cs
- XsltSettings.cs
- ContextStack.cs
- RequiredAttributeAttribute.cs
- TemplateKeyConverter.cs
- WebHttpBinding.cs
- SharedUtils.cs
- SqlDataAdapter.cs
- ToolZone.cs
- x509store.cs
- MemberInfoSerializationHolder.cs
- ApplicationCommands.cs
- GiveFeedbackEventArgs.cs
- sortedlist.cs
- HttpRawResponse.cs
- Annotation.cs
- EventLogQuery.cs
- SQLString.cs
- EditableTreeList.cs
- CommonRemoteMemoryBlock.cs
- DataGridPagerStyle.cs
- XmlDictionaryReader.cs
- MdiWindowListItemConverter.cs
- RemotingSurrogateSelector.cs
- SecurityElement.cs
- GraphicsState.cs
- CacheChildrenQuery.cs
- EndpointDiscoveryBehavior.cs
- ErrorTableItemStyle.cs
- MetadataArtifactLoaderFile.cs
- XPathNodeHelper.cs
- TypeSystemHelpers.cs
- XMLSyntaxException.cs
- DBCSCodePageEncoding.cs
- HttpPostLocalhostServerProtocol.cs
- MessageBox.cs
- coordinatorscratchpad.cs
- Token.cs
- InfoCardPolicy.cs
- SqlDelegatedTransaction.cs
- CachedBitmap.cs
- CodeLinePragma.cs
- _UriSyntax.cs
- AvtEvent.cs
- ImportCatalogPart.cs
- CapacityStreamGeometryContext.cs
- Thumb.cs
- TypeReference.cs
- LocatorGroup.cs
- EastAsianLunisolarCalendar.cs
- CallbackHandler.cs
- SafeLocalMemHandle.cs
- RootProfilePropertySettingsCollection.cs
- MetadataAssemblyHelper.cs
- DbCommandTree.cs
- CacheChildrenQuery.cs
- DeclaredTypeValidatorAttribute.cs
- XmlBaseWriter.cs
- UnsafeNativeMethods.cs
- AdRotator.cs
- LogAppendAsyncResult.cs
- ConstraintCollection.cs
- ShapeTypeface.cs
- UniformGrid.cs
- CodeBlockBuilder.cs
- OracleParameterCollection.cs
- InputLanguageSource.cs
- Vector3DKeyFrameCollection.cs
- CharacterShapingProperties.cs
- Math.cs
- ReturnValue.cs
- DiscoveryEndpointValidator.cs
- BCryptHashAlgorithm.cs
- UrlRoutingHandler.cs
- ErrorHandlerFaultInfo.cs
- EtwProvider.cs