Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectCloneHelper.cs
- XamlGridLengthSerializer.cs
- ParallelQuery.cs
- XmlQueryType.cs
- DataGridViewRowsAddedEventArgs.cs
- sortedlist.cs
- ComponentEvent.cs
- CopyAction.cs
- FloaterBaseParagraph.cs
- HtmlElementEventArgs.cs
- UnsignedPublishLicense.cs
- PathSegmentCollection.cs
- InkCanvas.cs
- KeyBinding.cs
- CollectionViewGroupInternal.cs
- Vertex.cs
- DetailsView.cs
- ResolveMatchesApril2005.cs
- EventsTab.cs
- SelectionUIService.cs
- ContentOperations.cs
- SourceLocation.cs
- ValidationResults.cs
- IProducerConsumerCollection.cs
- StringFreezingAttribute.cs
- SafeSecurityHelper.cs
- AuthorizationBehavior.cs
- SamlConditions.cs
- BinaryFormatterWriter.cs
- TextStore.cs
- BaseAsyncResult.cs
- SpotLight.cs
- TextBlock.cs
- ConfigurationValues.cs
- IconConverter.cs
- TraceAsyncResult.cs
- OSFeature.cs
- Maps.cs
- XmlElementCollection.cs
- DisplayToken.cs
- DataControlFieldsEditor.cs
- XmlSchemaValidator.cs
- XmlArrayItemAttribute.cs
- ResourceReferenceExpressionConverter.cs
- ActivityExecutorDelegateInfo.cs
- SecurityToken.cs
- RequestCachePolicyConverter.cs
- TextDocumentView.cs
- Schema.cs
- TryCatchDesigner.xaml.cs
- CredentialManagerDialog.cs
- DataTableExtensions.cs
- HorizontalAlignConverter.cs
- HtmlInputFile.cs
- QilParameter.cs
- ColorConvertedBitmapExtension.cs
- HostingPreferredMapPath.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- SHA384Managed.cs
- BehaviorEditorPart.cs
- FrameworkElementFactoryMarkupObject.cs
- ToolStripSeparator.cs
- AnnotationHelper.cs
- Substitution.cs
- MsmqIntegrationSecurity.cs
- EntityContainerEmitter.cs
- GatewayDefinition.cs
- ExternalCalls.cs
- WindowsToolbarItemAsMenuItem.cs
- DynamicQueryableWrapper.cs
- ScriptingProfileServiceSection.cs
- AsyncOperation.cs
- TextBox.cs
- CompiledRegexRunner.cs
- Figure.cs
- HtmlTableRowCollection.cs
- EndpointConfigContainer.cs
- MetadataCache.cs
- NavigationWindowAutomationPeer.cs
- MessageSmuggler.cs
- SplineKeyFrames.cs
- TimeManager.cs
- Light.cs
- FontDialog.cs
- Matrix3DStack.cs
- ResourceContainer.cs
- MetaDataInfo.cs
- UnsafeNativeMethodsCLR.cs
- GiveFeedbackEvent.cs
- TopClause.cs
- NamespaceListProperty.cs
- DataServiceQuery.cs
- uribuilder.cs
- TextFormatterHost.cs
- CacheSection.cs
- DirectoryInfo.cs
- CalendarTable.cs
- DependencyObjectValidator.cs
- Stylus.cs
- _LocalDataStoreMgr.cs