Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / TextEffect.cs / 1 / 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
- FileInfo.cs
- SecurityPolicySection.cs
- WindowsAuthenticationModule.cs
- EdmFunction.cs
- CommonProperties.cs
- IPAddressCollection.cs
- XhtmlTextWriter.cs
- CollectionEditVerbManager.cs
- ResponseBodyWriter.cs
- ProfileSettings.cs
- CodeRegionDirective.cs
- ActivityExecutionContextCollection.cs
- HtmlInputControl.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BrowserCapabilitiesFactoryBase.cs
- DomainLiteralReader.cs
- SecurityCredentialsManager.cs
- JoinCqlBlock.cs
- ListViewItemCollectionEditor.cs
- SingleConverter.cs
- Vector3DValueSerializer.cs
- SmtpLoginAuthenticationModule.cs
- QueueProcessor.cs
- OleDbFactory.cs
- ProfileEventArgs.cs
- CatalogPart.cs
- WindowsBrush.cs
- XmlConverter.cs
- KeyConverter.cs
- PerformanceCounterLib.cs
- GuidConverter.cs
- DelegatingTypeDescriptionProvider.cs
- ListenerTraceUtility.cs
- ToolStripDropDownClosingEventArgs.cs
- WmlValidationSummaryAdapter.cs
- ObjectSecurity.cs
- WindowsListViewGroupHelper.cs
- TypeConstant.cs
- Parser.cs
- QuestionEventArgs.cs
- FormViewPageEventArgs.cs
- ValueCollectionParameterReader.cs
- PropertyPathWorker.cs
- StringValidatorAttribute.cs
- StringFreezingAttribute.cs
- DBCommandBuilder.cs
- NullPackagingPolicy.cs
- EditorPartCollection.cs
- XmlDataSource.cs
- SimpleType.cs
- SafeFileMappingHandle.cs
- ModelTreeEnumerator.cs
- DockEditor.cs
- DbDataAdapter.cs
- TCEAdapterGenerator.cs
- LicenseException.cs
- DataGridViewLinkColumn.cs
- TraceContextRecord.cs
- WCFServiceClientProxyGenerator.cs
- AtlasWeb.Designer.cs
- Asn1IntegerConverter.cs
- EventlogProvider.cs
- DispatcherHooks.cs
- FixedSOMImage.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ListBoxAutomationPeer.cs
- BasicHttpSecurityElement.cs
- SimpleFieldTemplateUserControl.cs
- KeyValueSerializer.cs
- FreeFormDesigner.cs
- CounterSample.cs
- SparseMemoryStream.cs
- SafeEventLogWriteHandle.cs
- ClientRuntimeConfig.cs
- ObjectDataSourceSelectingEventArgs.cs
- TransformGroup.cs
- FixedSOMElement.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- OracleBinary.cs
- OleDbMetaDataFactory.cs
- PolyLineSegmentFigureLogic.cs
- RecommendedAsConfigurableAttribute.cs
- InputQueueChannel.cs
- PeerFlooder.cs
- XmlRawWriter.cs
- SqlFormatter.cs
- HttpCachePolicy.cs
- Permission.cs
- SqlServer2KCompatibilityCheck.cs
- Exceptions.cs
- RouteData.cs
- InertiaTranslationBehavior.cs
- ControlCachePolicy.cs
- Int32Rect.cs
- GridItemCollection.cs
- SqlClientWrapperSmiStream.cs
- ThrowOnMultipleAssignment.cs
- MinimizableAttributeTypeConverter.cs
- DialogWindow.cs
- PassportAuthenticationModule.cs